home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / web2c.kpathsea-2.5.help < prev    next >
Text File  |  1994-12-18  |  138KB  |  4,800 lines

  1. ftp.cs.umb.edu:pub/tex/web2c.kpathsea-2.5.help, 16dec94.
  2.  
  3. The version of kpathsea distributed with web2c-6.1 is kpathsea-1.8.
  4. It was released in April 1994.  The current version of kpathsea,
  5. kpathsea-2.5, has faster path searching, runtime configuration files,
  6. bug fixes, and other improvements (see kpathsea/NEWS).  Karl Berry
  7. will put out a new release of web2c in a month or so, but those who
  8. cannot wait to use the current version of kpathsea in web2c-6.1 will
  9. find some help in this file.
  10.  
  11. You do not have to follow the instructions in this file to build
  12. web2c-6.1; it will build and run perfectly fine with kpathsea-1.8.
  13. You should follow these instructions only if you want to take
  14. advantage of the improvements in kpathsea-2.5 and you don't want to
  15. wait for the next release of web2c.  If you run into any problems, you
  16. will have to debug and fix them yourself.  You can also send a message
  17. to the tex-k@cs.umb.edu mailing list if you need some more help.
  18.  
  19. Follow these instructions to make web2c-6.1 compile and link with
  20. kpathsea-2.5:
  21.  
  22. 1.  Fetch one of the following tar files, `dviljk-2.4.tar.gz',
  23.     `dvipsk-5.58e.tar.gz', or `xdvik-18e.tar.gz', from your nearest
  24.     CTAN archive (use `finger ctan_us@ftp.shsu.edu' to get a list of
  25.     CTAN archives and their mirrors).  It does not matter which tar
  26.     file you fetch since they all have the same version of kpathsea.
  27.     If you don't plan to build and install dviljk, dvipsk, or xdvik,
  28.     you might as well get the smallest tar file: `xdvik-18e.tar.gz'.
  29.  
  30. 2.  Fetch the tar files `web-6.1.tar.gz' and `web2c-6.1.tar.gz' from
  31.     your nearest CTAN archive.
  32.  
  33. 3.  Unpack all of the tar files in the same directory.  You will have
  34.     two new directories: web2c-6.1 and one of dviljk-2.4,
  35.     dvipsk-5.58e, or xdvik-18e depending on which tar file you chose
  36.     in step 1.
  37.  
  38. 4.  Move the subdirectory web2c-6.1/web2c into dviljk-2.4,
  39.     dvipsk-5.58e, or xdvik-18e:
  40.  
  41.     mv web2c-6.1/web2c xdvik-18e
  42.  
  43. 5.  Rename the directory now containing the web2c subdirectory to
  44.     web2c-6.1e or whichever name you choose:
  45.  
  46.     mv xdvik-18e web2c-6.1e
  47.  
  48. 6.  You don't need the remaining files in web2c-6.1 or the
  49.     subdirectories dviljk, dvipsk, or xdvik to build TeX and MF, so
  50.     you can delete them if you wish:
  51.  
  52.     rm -rf web2c-6.1
  53.     rm -rf web2c-6.1e/xdvik
  54.  
  55. 7.  Patch a few files in the web2c subdirectory.  The patch is
  56.     appended below.  First move into the directory containing the
  57.     web2c subdirectory and then apply the patch:
  58.  
  59.     cd web2c-6.1e
  60.     patch -p -s < web2c.kpathsea-2.5.help
  61.  
  62.     This patch was made so that it won't matter what you call the
  63.     directory containing the web2c subdirectory since you'll be inside
  64.     it before applying the patch.  You shouldn't get any output from
  65.     patch unless an error occurs.
  66.  
  67. 8.  Now follow the normal procedure for installation of web2c-6.1.
  68.     You will have to edit the fmts variable in web2c/Makefile.in if
  69.     you want to build another format besides tex.fmt.  If you want to
  70.     build the latex format, you must have all of the latex input files
  71.     installed somewhere in /usr/local/lib/texmf.  You may prefer to
  72.     use a separate directory for building and installing the most up
  73.     to date latex input files and format (ftp to your nearest CTAN
  74.     archive, cd to the directory /tex-archive/macros/latex, get
  75.     base.tar.gz and package.tar.gz, and read the instructions therein
  76.     for how to build and install the latex input files and format).
  77.  
  78. *** Makefile.in.save    Wed Dec 14 12:54:57 1994
  79. --- Makefile.in    Mon Dec 19 11:31:59 1994
  80. ***************
  81. *** 56,60 ****
  82.   
  83.   distclean realclean::
  84. !     rm -f Makefile config.status
  85.   
  86.   # Unconditionally remake the library, since we don't want to write out
  87. --- 56,60 ----
  88.   
  89.   distclean realclean::
  90. !     rm -f Makefile config.status config.cache config.log
  91.   
  92.   # Unconditionally remake the library, since we don't want to write out
  93. *** aclocal.m4.save    Sun Dec 11 10:56:40 1994
  94. --- aclocal.m4    Fri Dec 16 14:23:32 1994
  95. ***************
  96. *** 3,6 ****
  97. --- 3,7 ----
  98.   dnl AC_OUTPUT_FILES(FILE...)
  99.   dnl I've added ac_include support --karl.
  100. + undefine([AC_OUTPUT_FILES])
  101.   define(AC_OUTPUT_FILES,
  102.   [# Protect against being on the right side of a sed subst in config.status. 
  103. ***************
  104. *** 120,123 ****
  105. --- 121,125 ----
  106.   dnl
  107.   dnl Find additional X libraries, magic flags, etc.
  108. + undefine([AC_PATH_XTRA])
  109.   AC_DEFUN(AC_PATH_XTRA,
  110.   [AC_REQUIRE([AC_ISC_POSIX])dnl
  111. ***************
  112. *** 188,190 ****
  113. --- 190,232 ----
  114.   AC_SUBST(X_LIBS)dnl
  115.   AC_SUBST(X_EXTRA_LIBS)dnl
  116. + ])
  117. + dnl Definition was buggy in Autoconf 2.1; parameters were incorrectly
  118. + dnl passed to AC_MSG_ERROR and AC_TRY_LINK.
  119. + dnl
  120. + dnl Check if lex declares yytext as a char * by default, not a char[].
  121. + undefine([AC_DECL_YYTEXT])
  122. + AC_DEFUN(AC_DECL_YYTEXT,
  123. + [AC_REQUIRE_CPP()dnl
  124. + AC_REQUIRE([AC_PROG_LEX])dnl
  125. + AC_MSG_CHECKING(for yytext declaration)
  126. + AC_CACHE_VAL(ac_cv_prog_lex_yytext_pointer,
  127. + [# POSIX says lex can declare yytext either as a pointer or an array; the
  128. + # default is implementation-dependent. Figure out which it is, since
  129. + # not all implementations provide the %pointer and %array declarations.
  130. + #
  131. + # The minimal lex program is just a single line: %%.  But some broken lexes
  132. + # (Solaris, I think it was) want two %% lines, so accommodate them.
  133. + ac_cv_prog_lex_yytext_pointer=no
  134. +   echo '%%
  135. + %%' | $LEX
  136. + if test -f lex.yy.c; then
  137. +   LEX_OUTPUT_ROOT=lex.yy
  138. + elif test -f lexyy.c; then
  139. +   LEX_OUTPUT_ROOT=lexyy
  140. + else
  141. +   AC_MSG_ERROR([cannot find output from $LEX, giving up])
  142. + fi
  143. + echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
  144. + ac_save_LIBS="$LIBS"
  145. + LIBS="$LIBS $LEXLIB"
  146. + AC_TRY_LINK(`cat $LEX_OUTPUT_ROOT.c`,, ac_cv_prog_lex_yytext_pointer=yes)
  147. + LIBS="$ac_save_LIBS"
  148. + rm -f "${LEX_OUTPUT_ROOT}.c"])dnl
  149. + AC_MSG_RESULT($ac_cv_prog_lex_yytext_pointer)
  150. + if test $ac_cv_prog_lex_yytext_pointer = yes; then
  151. +   AC_DEFINE(YYTEXT_POINTER)
  152. + fi
  153. + AC_SUBST(LEX_OUTPUT_ROOT)dnl
  154.   ])
  155. *** kpathsea/tex-make.c.save    Sat Dec 10 13:55:34 1994
  156. --- kpathsea/tex-make.c    Sun Dec 18 21:51:38 1994
  157. ***************
  158. *** 197,201 ****
  159.       {
  160.         /* See the documentation for the envvars we're dealing with here.  */
  161. !       string args, cmd;
  162.         const_string prog = spec.program; /* MakeTeXPK */
  163.         string PROG = uppercasify (prog); /* MAKETEXPK */
  164. --- 197,201 ----
  165.       {
  166.         /* See the documentation for the envvars we're dealing with here.  */
  167. !       string args, cmd, mode;
  168.         const_string prog = spec.program; /* MakeTeXPK */
  169.         string PROG = uppercasify (prog); /* MAKETEXPK */
  170. ***************
  171. *** 219,226 ****
  172.            fonts; but such sites are uncommon, so they shouldn't make
  173.            things harder for everyone else.  */
  174. !       if (STREQ (getenv ("MAKETEX_MODE"), DIR_SEP_STRING))
  175.           xputenv ("MAKETEX_MODE", "");
  176.         args = arg_spec ? kpse_var_expand (arg_spec) : (string) "";
  177. !       if (STREQ (getenv ("MAKETEX_MODE"), DIR_SEP_STRING))
  178.           xputenv ("MAKETEX_MODE", DIR_SEP_STRING);
  179.         
  180. --- 219,227 ----
  181.            fonts; but such sites are uncommon, so they shouldn't make
  182.            things harder for everyone else.  */
  183. !       mode = getenv ("MAKETEX_MODE");
  184. !       if (mode && STREQ (mode, DIR_SEP_STRING))
  185.           xputenv ("MAKETEX_MODE", "");
  186.         args = arg_spec ? kpse_var_expand (arg_spec) : (string) "";
  187. !       if (mode && STREQ (mode, DIR_SEP_STRING))
  188.           xputenv ("MAKETEX_MODE", DIR_SEP_STRING);
  189.         
  190. *** web2c/Makefile.in.save    Thu Feb  3 04:47:59 1994
  191. --- web2c/Makefile.in    Fri Dec 16 12:56:06 1994
  192. ***************
  193. *** 13,18 ****
  194.   
  195.   # Generic installation directories.
  196. ! prefix = /usr/local
  197. ! exec_prefix = $(prefix)
  198.   bindir = $(exec_prefix)/bin
  199.   scriptdir = $(bindir)
  200. --- 13,18 ----
  201.   
  202.   # Generic installation directories.
  203. ! prefix = @prefix@
  204. ! exec_prefix = @exec_prefix@
  205.   bindir = $(exec_prefix)/bin
  206.   scriptdir = $(bindir)
  207. ***************
  208. *** 75,81 ****
  209.   # description of each of these formats.
  210.   bases = mf.base cmmf.base
  211. ! fmts = tex.fmt latex.fmt 
  212. ! # slitex.fmt etex.fmt amslatex.fmt amstex.fmt texinfo.fmt inrstex.fmt
  213. ! # picplus.fmt
  214.   
  215.   # The name of the file that defines your local devices, for use with
  216. --- 75,81 ----
  217.   # description of each of these formats.
  218.   bases = mf.base cmmf.base
  219. ! fmts = tex.fmt
  220. ! # latex.fmt slitex.fmt etex.fmt amslatex.fmt amstex.fmt texinfo.fmt
  221. ! # inrstex.fmt picplus.fmt
  222.   
  223.   # The name of the file that defines your local devices, for use with
  224. ***************
  225. *** 124,131 ****
  226.   # Make `#include <X11/...>' and `-lX...' work.
  227.   # wlibs is substituted by web2c's configure, LIBS by general configure
  228. ! # routines, and the others by AC_FIND_XTRA.
  229. ! x_include_flags = @x_include_flags@
  230. ! x_lib_flags = @x_lib_flags@
  231. ! x_extra_libs = @x_extra_libs@
  232.   wlibs = @wlibs@
  233.   LIBS = @LIBS@ $(extralibs)
  234. --- 124,131 ----
  235.   # Make `#include <X11/...>' and `-lX...' work.
  236.   # wlibs is substituted by web2c's configure, LIBS by general configure
  237. ! # routines, and the others by AC_PATH_XTRA.
  238. ! x_include_flags = @X_CFLAGS@
  239. ! x_lib_flags = @X_LIBS@
  240. ! x_extra_libs = @X_EXTRA_LIBS@
  241.   wlibs = @wlibs@
  242.   LIBS = @LIBS@ $(extralibs)
  243. ***************
  244. *** 467,471 ****
  245.   
  246.   realclean distclean::
  247. !     rm -f Makefile config.status
  248.   
  249.   extraclean::
  250. --- 467,471 ----
  251.   
  252.   realclean distclean::
  253. !     rm -f Makefile config.status config.log config.cache
  254.   
  255.   extraclean::
  256. *** web2c/configure.in.save    Tue Feb  1 14:42:20 1994
  257. --- web2c/configure.in    Fri Dec 16 13:11:03 1994
  258. ***************
  259. *** 12,60 ****
  260.   sinclude(../kpathsea/common.ac)
  261.   
  262. - dnl Do something erroneous if the symbol we are testing is undefined.
  263. - define(user_sym_check, [AC_TEST_CPP(#include "$srcdir/lib/c-auto.h.in"
  264. - #ifndef $1
  265. - #include <nonexistxyz.kkk>
  266. - #endif
  267. - , $1=t
  268. - )])
  269.   AC_PROG_YACC
  270.   AC_PROG_LEX
  271. ! AC_LN_S
  272.   
  273. ! AC_RETSIGTYPE
  274.   
  275.   dnl These tests prevent reliable cross-compilation.  Sigh.
  276. ! AC_CHAR_UNSIGNED
  277.   AC_LONG_64_BITS
  278. ! AC_WORDS_BIGENDIAN
  279.   
  280.   dnl Must do this last, as the addition to DEFS in Autoconf 1.3 confuses
  281.   dnl the compiler.
  282. ! AC_DECLARE_YYTEXT
  283.   
  284. ! echo checking for window system libraries
  285. ! user_sym_check(SUNWIN)
  286. ! user_sym_check(XVIEWWIN)
  287. ! user_sym_check(X11WIN)
  288. ! user_sym_check(X10WIN)
  289. ! if test -n "$XVIEWWIN"; then
  290.     wlibs="-lxview -lolgx -lX11 $wlibs"
  291.     (cd $srcdir/mf/MFwindow; rm -f sun.c; $LN_S sun-xview.c sun.c)
  292.   fi
  293. ! if test -n "$X11WIN"; then
  294. !   AC_FIND_X
  295. !   AC_FIND_XTRA
  296. !   if test -z "$Xextlib"; then
  297. !     AC_HAVE_LIBRARY(Xext, Xextlib=-lXext)
  298. !   fi
  299. !   wlibs="-lXt $Xextlib -lX11 $wlibs"
  300.     (cd $srcdir/mf/MFwindow; rm -f x11.c; $LN_S x11-Xt.c x11.c)
  301.   fi
  302. ! if test -n "$X10WIN"; then
  303.     wlibs="-lX $wlibs"
  304.   fi
  305. ! if test -n "$SUNWIN"; then
  306.     wlibs="-lsuntool -lsunwindow -lpixrect $wlibs"
  307.     (cd $srcdir/mf/MFwindow; rm -f sun.c; $LN_S sun-sunview.c sun.c)
  308. --- 12,68 ----
  309.   sinclude(../kpathsea/common.ac)
  310.   
  311.   AC_PROG_YACC
  312.   AC_PROG_LEX
  313. ! AC_PROG_LN_S
  314.   
  315. ! AC_TYPE_SIGNAL
  316.   
  317.   dnl These tests prevent reliable cross-compilation.  Sigh.
  318. ! AC_C_CHAR_UNSIGNED
  319.   AC_LONG_64_BITS
  320. ! AC_C_BIGENDIAN
  321.   
  322.   dnl Must do this last, as the addition to DEFS in Autoconf 1.3 confuses
  323.   dnl the compiler.
  324. ! AC_DECL_YYTEXT
  325. ! dnl Check if lib/c-auto.h.in defines a preprocessor symbol.
  326. ! define(AC_KBSYM_CHECK, AC_EGREP_CPP(yes,
  327. ! [#include "$srcdir/lib/c-auto.h.in"
  328. ! #ifdef $1
  329. !   yes
  330. ! #endif
  331. ! ], $1=yes, $1=no))
  332. ! AC_MSG_CHECKING(for sunwindow libraries)
  333. ! AC_KBSYM_CHECK(SUNWIN)
  334. ! AC_MSG_RESULT($SUNWIN)
  335. ! AC_MSG_CHECKING(for xview libraries)
  336. ! AC_KBSYM_CHECK(XVIEWWIN)
  337. ! AC_MSG_RESULT($XVIEWWIN)
  338. ! AC_MSG_CHECKING(for X11 libraries)
  339. ! AC_KBSYM_CHECK(X11WIN)
  340. ! AC_MSG_RESULT($X11WIN)
  341. ! AC_MSG_CHECKING(for X10 libraries)
  342. ! AC_KBSYM_CHECK(X10WIN)
  343. ! AC_MSG_RESULT($X10WIN)
  344.   
  345. ! if test $XVIEWWIN = yes; then
  346.     wlibs="-lxview -lolgx -lX11 $wlibs"
  347.     (cd $srcdir/mf/MFwindow; rm -f sun.c; $LN_S sun-xview.c sun.c)
  348.   fi
  349. ! if test $X11WIN = yes; then
  350. !   AC_PATH_X
  351. !   AC_PATH_XTRA
  352. !   wlibs="-lXt $X_PRE_LIBS -lX11 $wlibs"
  353.     (cd $srcdir/mf/MFwindow; rm -f x11.c; $LN_S x11-Xt.c x11.c)
  354.   fi
  355. ! if test $X10WIN = yes; then
  356.     wlibs="-lX $wlibs"
  357.   fi
  358. ! if test $SUNWIN = yes; then
  359.     wlibs="-lsuntool -lsunwindow -lpixrect $wlibs"
  360.     (cd $srcdir/mf/MFwindow; rm -f sun.c; $LN_S sun-sunview.c sun.c)
  361. ***************
  362. *** 62,87 ****
  363.   AC_SUBST(wlibs)
  364.   
  365. ! echo checking for small TeX/MF/BibTeX
  366. ! # Do TeX first.
  367. ! # If `small' version is not wanted, do nothing -- make will copy the
  368. ! # default change file.
  369. ! user_sym_check(SMALLTeX)
  370. ! if test -n "$SMALLTeX"; then
  371. !   echo "(small TeX, creating tex/ctex.ch)"
  372.     (cd $srcdir/tex && rm -f ctex.ch && sed -f small.sed <tex.ch >ctex.ch)
  373.     AC_DEFINE(GLUERATIO_TYPE, float)
  374.   fi
  375.   
  376. ! # Metafont next.
  377. ! user_sym_check(SMALLMF)
  378. ! if test -n "$SMALLMF"; then
  379. !   echo "(small Metafont, creating mf/cmf.ch)"
  380.     (cd $srcdir/mf && rm -f cmf.ch && sed -f small.sed <mf.ch >cmf.ch)
  381.   fi
  382.   
  383. ! # And finally BibTeX.
  384. ! user_sym_check(SMALLBibTeX)
  385. ! if test -n "$SMALLBibTeX"; then
  386. !   echo "(small BibTeX, creating bibtex/cbibtex.ch)"
  387.     (cd $srcdir/bibtex \
  388.      && rm -f cbibtex.ch && sed -f small.sed <bibtex.ch >cbibtex.ch)
  389. --- 70,97 ----
  390.   AC_SUBST(wlibs)
  391.   
  392. ! dnl Do TeX first.
  393. ! dnl If `small' version is not wanted, do nothing -- make will copy the
  394. ! dnl default change file.
  395. ! AC_MSG_CHECKING(for small TeX)
  396. ! AC_KBSYM_CHECK(SMALLTeX)
  397. ! AC_MSG_RESULT($SMALLTeX)
  398. ! if test $SMALLTeX = yes; then
  399.     (cd $srcdir/tex && rm -f ctex.ch && sed -f small.sed <tex.ch >ctex.ch)
  400.     AC_DEFINE(GLUERATIO_TYPE, float)
  401.   fi
  402.   
  403. ! dnl Metafont next.
  404. ! AC_MSG_CHECKING(for small MF)
  405. ! AC_KBSYM_CHECK(SMALLMF)
  406. ! AC_MSG_RESULT($SMALLMF)
  407. ! if test $SMALLMF = yes; then
  408.     (cd $srcdir/mf && rm -f cmf.ch && sed -f small.sed <mf.ch >cmf.ch)
  409.   fi
  410.   
  411. ! dnl And finally BibTeX.
  412. ! AC_MSG_CHECKING(for small BibTeX)
  413. ! AC_KBSYM_CHECK(SMALLBibTeX)
  414. ! AC_MSG_RESULT($SMALLBibTeX)
  415. ! if test $SMALLBibTeX = yes; then
  416.     (cd $srcdir/bibtex \
  417.      && rm -f cbibtex.ch && sed -f small.sed <bibtex.ch >cbibtex.ch)
  418. *** web2c/configure.save    Tue Feb  1 14:42:36 1994
  419. --- web2c/configure    Fri Dec 16 14:26:18 1994
  420. ***************
  421. *** 1,131 ****
  422.   #!/bin/sh
  423.   # Guess values for system-dependent variables and create Makefiles.
  424. ! # Generated automatically using autoconf.
  425. ! # Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  426.   
  427. ! # This program is free software; you can redistribute it and/or modify
  428. ! # it under the terms of the GNU General Public License as published by
  429. ! # the Free Software Foundation; either version 2, or (at your option)
  430. ! # any later version.
  431. ! # This program is distributed in the hope that it will be useful,
  432. ! # but WITHOUT ANY WARRANTY; without even the implied warranty of
  433. ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  434. ! # GNU General Public License for more details.
  435. ! # You should have received a copy of the GNU General Public License
  436. ! # along with this program; if not, write to the Free Software
  437. ! # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  438. ! # Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp]
  439. ! #        [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE[=VALUE]]
  440. ! # Ignores all args except --srcdir, --prefix, --exec-prefix, and
  441. ! # --with-PACKAGE[=VALUE] unless this script has special code to handle it.
  442.   
  443. ! for arg
  444.   do
  445. -   # Handle --exec-prefix with a space before the argument.
  446. -   if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
  447. -   # Handle --host with a space before the argument.
  448. -   elif test x$next_host = xyes; then next_host=
  449. -   # Handle --prefix with a space before the argument.
  450. -   elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
  451. -   # Handle --srcdir with a space before the argument.
  452. -   elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
  453. -   else
  454. -     case $arg in
  455. -      # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  456. -      -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
  457. -     exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  458. -      -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  459. -     next_exec_prefix=yes ;;
  460. -      -gas | --gas | --ga | --g) ;;
  461. -      -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
  462. -      -host | --host | --hos | --ho | --h)
  463. -     next_host=yes ;;
  464. -      -nfp | --nfp | --nf) ;;
  465. -      -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  466. -     prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  467. -      -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  468. -     next_prefix=yes ;;
  469. -      -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
  470. -     srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  471. -      -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
  472. -     next_srcdir=yes ;;
  473. -      -with-* | --with-*)
  474. -        package=`echo $arg|sed -e 's/-*with-//' -e 's/=.*//'`
  475. -        # Reject names that aren't valid shell variable names.
  476. -        if test -n "`echo $package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  477. -          echo "configure: $package: invalid package name" >&2; exit 1
  478. -        fi
  479. -        package=`echo $package| sed 's/-/_/g'`
  480. -        case "$arg" in
  481. -          *=*) val="`echo $arg|sed 's/[^=]*=//'`" ;;
  482. -          *) val=1 ;;
  483. -        esac
  484. -        eval "with_$package='$val'" ;;
  485.   
  486. !      -v | -verbose | --verbose | --verbos | --verbo | --verb | --ver | --ve | --v)
  487. !        verbose=yes ;;
  488.   
  489. !      *) ;;
  490.       esac
  491. !   fi
  492.   done
  493.   
  494. ! trap 'rm -fr conftest* confdefs* core; exit 1' 1 3 15
  495. ! trap 'rm -f confdefs*' 0
  496.   
  497.   # NLS nuisances.
  498.   # These must not be set unconditionally because not all systems understand
  499.   # e.g. LANG=C (notably SCO).
  500. ! if test "${LC_ALL+set}" = 'set' ; then LC_ALL=C; export LC_ALL; fi
  501. ! if test "${LANG+set}"   = 'set' ; then LANG=C;   export LANG;   fi
  502.   
  503. ! rm -f conftest* confdefs.h
  504.   # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  505.   echo > confdefs.h
  506. - compile='${CC-cc} $CFLAGS conftest.c -o conftest $LIBS >/dev/null 2>&1'
  507.   
  508.   # A filename unique to this package, relative to the directory that
  509.   # configure is in, which we can look for to find out if srcdir is correct.
  510. ! unique_file=web2c/web2c.c
  511.   
  512.   # Find the source files, if location was not specified.
  513.   if test -z "$srcdir"; then
  514. !   srcdirdefaulted=yes
  515. !   # Try the directory containing this script, then `..'.
  516. !   prog=$0
  517. !   confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  518. !   test "X$confdir" = "X$prog" && confdir=.
  519. !   srcdir=$confdir
  520. !   if test ! -r $srcdir/$unique_file; then
  521.       srcdir=..
  522.     fi
  523.   fi
  524. ! if test ! -r $srcdir/$unique_file; then
  525. !   if test x$srcdirdefaulted = xyes; then
  526. !     echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
  527.     else
  528. !     echo "configure: Can not find sources in \`${srcdir}'." 1>&2
  529.     fi
  530. -   exit 1
  531.   fi
  532. ! # Preserve a srcdir of `.' to avoid automounter screwups with pwd.
  533. ! # But we can't avoid them for `..', to make subdirectories work.
  534. ! case $srcdir in
  535. !   .|/*|~*) ;;
  536. !   *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
  537. ! esac
  538.   
  539.   
  540. - # Save the original args to write them into config.status later.
  541. - configure_args="$*"
  542.   
  543.   
  544. --- 1,402 ----
  545.   #!/bin/sh
  546.   # Guess values for system-dependent variables and create Makefiles.
  547. ! # Generated automatically using autoconf version 2.1 
  548. ! # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  549. ! #
  550. ! # This configure script is free software; the Free Software Foundation
  551. ! # gives unlimited permission to copy, distribute and modify it.
  552. ! # Defaults:
  553. ! ac_help=
  554. ! ac_default_prefix=/usr/local
  555. ! # Any additions from configure.in:
  556. ! ac_help="$ac_help
  557. !   --with-x                use the X Window System"
  558. ! # Initialize some variables set by options.
  559. ! # The variables have the same names as the options, with
  560. ! # dashes changed to underlines.
  561. ! build=NONE
  562. ! cache_file=./config.cache
  563. ! exec_prefix=NONE
  564. ! host=NONE
  565. ! no_create=
  566. ! nonopt=NONE
  567. ! no_recursion=
  568. ! prefix=NONE
  569. ! program_prefix=NONE
  570. ! program_suffix=NONE
  571. ! program_transform_name=s,x,x,
  572. ! silent=
  573. ! site=
  574. ! srcdir=
  575. ! target=NONE
  576. ! verbose=
  577. ! x_includes=NONE
  578. ! x_libraries=NONE
  579.   
  580. ! # Initialize some other variables.
  581. ! subdirs=
  582.   
  583. ! ac_prev=
  584. ! for ac_option
  585.   do
  586.   
  587. !   # If the previous option needs an argument, assign it.
  588. !   if test -n "$ac_prev"; then
  589. !     eval "$ac_prev=\$ac_option"
  590. !     ac_prev=
  591. !     continue
  592. !   fi
  593. !   case "$ac_option" in
  594. !   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  595. !   *) ac_optarg= ;;
  596. !   esac
  597. !   # Accept the important Cygnus configure options, so we can diagnose typos.
  598. !   case "$ac_option" in
  599.   
  600. !   -build | --build | --buil | --bui | --bu | --b)
  601. !     ac_prev=build ;;
  602. !   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  603. !     build="$ac_optarg" ;;
  604. !   -cache-file | --cache-file | --cache-fil | --cache-fi \
  605. !   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  606. !     ac_prev=cache_file ;;
  607. !   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  608. !   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  609. !     cache_file="$ac_optarg" ;;
  610. !   -disable-* | --disable-*)
  611. !     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  612. !     # Reject names that are not valid shell variable names.
  613. !     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  614. !       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  615. !     fi
  616. !     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  617. !     eval "enable_${ac_feature}=no" ;;
  618. !   -enable-* | --enable-*)
  619. !     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  620. !     # Reject names that are not valid shell variable names.
  621. !     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  622. !       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  623. !     fi
  624. !     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  625. !     case "$ac_option" in
  626. !       *=*) ;;
  627. !       *) ac_optarg=yes ;;
  628.       esac
  629. !     eval "enable_${ac_feature}='$ac_optarg'" ;;
  630. !   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  631. !   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  632. !   | --exec | --exe | --ex)
  633. !     ac_prev=exec_prefix ;;
  634. !   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  635. !   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  636. !   | --exec=* | --exe=* | --ex=*)
  637. !     exec_prefix="$ac_optarg" ;;
  638. !   -gas | --gas | --ga | --g)
  639. !     # Obsolete; use --with-gas.
  640. !     with_gas=yes ;;
  641. !   -help | --help | --hel | --he)
  642. !     # Omit some internal or obsolete options to make the list less imposing.
  643. !     # This message is too long to be a string in the A/UX 3.1 sh.
  644. !     cat << EOF
  645. ! Usage: configure [options] [host]
  646. ! Options: [defaults in brackets after descriptions]
  647. ! Configuration:
  648. !   --cache-file=FILE       cache test results in FILE
  649. !   --help                  print this message
  650. !   --no-create             do not create output files
  651. !   --quiet, --silent       do not print \`checking...' messages
  652. !   --version               print the version of autoconf that created configure
  653. ! Directory and file names:
  654. !   --prefix=PREFIX         install architecture-independent files in PREFIX
  655. !                           [$ac_default_prefix]
  656. !   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  657. !                           [same as prefix]
  658. !   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  659. !   --program-prefix=PREFIX prepend PREFIX to installed program names
  660. !   --program-suffix=SUFFIX append SUFFIX to installed program names
  661. !   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  662. ! Host type:
  663. !   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  664. !   --host=HOST             configure for HOST [guessed]
  665. !   --target=TARGET         configure for TARGET [TARGET=HOST]
  666. ! Features and packages:
  667. !   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  668. !   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  669. !   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  670. !   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  671. !   --x-includes=DIR        X include files are in DIR
  672. !   --x-libraries=DIR       X library files are in DIR
  673. ! --enable and --with options recognized:$ac_help
  674. ! EOF
  675. !     exit 0 ;;
  676. !   -host | --host | --hos | --ho)
  677. !     ac_prev=host ;;
  678. !   -host=* | --host=* | --hos=* | --ho=*)
  679. !     host="$ac_optarg" ;;
  680. !   -nfp | --nfp | --nf)
  681. !     # Obsolete; use --without-fp.
  682. !     with_fp=no ;;
  683. !   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  684. !   | --no-cr | --no-c)
  685. !     no_create=yes ;;
  686. !   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  687. !   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  688. !     no_recursion=yes ;;
  689. !   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  690. !     ac_prev=prefix ;;
  691. !   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  692. !     prefix="$ac_optarg" ;;
  693. !   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  694. !   | --program-pre | --program-pr | --program-p)
  695. !     ac_prev=program_prefix ;;
  696. !   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  697. !   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  698. !     program_prefix="$ac_optarg" ;;
  699. !   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  700. !   | --program-suf | --program-su | --program-s)
  701. !     ac_prev=program_suffix ;;
  702. !   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  703. !   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  704. !     program_suffix="$ac_optarg" ;;
  705. !   -program-transform-name | --program-transform-name \
  706. !   | --program-transform-nam | --program-transform-na \
  707. !   | --program-transform-n | --program-transform- \
  708. !   | --program-transform | --program-transfor \
  709. !   | --program-transfo | --program-transf \
  710. !   | --program-trans | --program-tran \
  711. !   | --progr-tra | --program-tr | --program-t)
  712. !     ac_prev=program_transform_name ;;
  713. !   -program-transform-name=* | --program-transform-name=* \
  714. !   | --program-transform-nam=* | --program-transform-na=* \
  715. !   | --program-transform-n=* | --program-transform-=* \
  716. !   | --program-transform=* | --program-transfor=* \
  717. !   | --program-transfo=* | --program-transf=* \
  718. !   | --program-trans=* | --program-tran=* \
  719. !   | --progr-tra=* | --program-tr=* | --program-t=*)
  720. !     program_transform_name="$ac_optarg" ;;
  721. !   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  722. !   | -silent | --silent | --silen | --sile | --sil)
  723. !     silent=yes ;;
  724. !   -site | --site | --sit)
  725. !     ac_prev=site ;;
  726. !   -site=* | --site=* | --sit=*)
  727. !     site="$ac_optarg" ;;
  728. !   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  729. !     ac_prev=srcdir ;;
  730. !   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  731. !     srcdir="$ac_optarg" ;;
  732. !   -target | --target | --targe | --targ | --tar | --ta | --t)
  733. !     ac_prev=target ;;
  734. !   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  735. !     target="$ac_optarg" ;;
  736. !   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  737. !     verbose=yes ;;
  738. !   -version | --version | --versio | --versi | --vers)
  739. !     echo "configure generated by autoconf version 2.1"
  740. !     exit 0 ;;
  741. !   -with-* | --with-*)
  742. !     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  743. !     # Reject names that are not valid shell variable names.
  744. !     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  745. !       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  746. !     fi
  747. !     ac_package=`echo $ac_package| sed 's/-/_/g'`
  748. !     case "$ac_option" in
  749. !       *=*) ;;
  750. !       *) ac_optarg=yes ;;
  751. !     esac
  752. !     eval "with_${ac_package}='$ac_optarg'" ;;
  753. !   -without-* | --without-*)
  754. !     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  755. !     # Reject names that are not valid shell variable names.
  756. !     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  757. !       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  758. !     fi
  759. !     ac_package=`echo $ac_package| sed 's/-/_/g'`
  760. !     eval "with_${ac_package}=no" ;;
  761. !   --x)
  762. !     # Obsolete; use --with-x.
  763. !     with_x=yes ;;
  764. !   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  765. !   | --x-incl | --x-inc | --x-in | --x-i)
  766. !     ac_prev=x_includes ;;
  767. !   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  768. !   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  769. !     x_includes="$ac_optarg" ;;
  770. !   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  771. !   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  772. !     ac_prev=x_libraries ;;
  773. !   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  774. !   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  775. !     x_libraries="$ac_optarg" ;;
  776. !   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  777. !     ;;
  778. !   *) 
  779. !     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  780. !       echo "configure: warning: $ac_option: invalid host type" 1>&2
  781. !     fi
  782. !     if test "x$nonopt" != xNONE; then
  783. !       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  784. !     fi
  785. !     nonopt="$ac_option"
  786. !     ;;
  787. !   esac
  788.   done
  789.   
  790. ! if test -n "$ac_prev"; then
  791. !   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  792. ! fi
  793. ! trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  794. ! # File descriptor usage:
  795. ! # 0 unused; standard input
  796. ! # 1 file creation
  797. ! # 2 errors and warnings
  798. ! # 3 unused; some systems may open it to /dev/tty
  799. ! # 4 checking for... messages and results
  800. ! # 5 compiler messages saved in config.log
  801. ! if test "$silent" = yes; then
  802. !   exec 4>/dev/null
  803. ! else
  804. !   exec 4>&1
  805. ! fi
  806. ! exec 5>./config.log
  807. ! echo "\
  808. ! This file contains any messages produced by compilers while
  809. ! running configure, to aid debugging if configure makes a mistake.
  810. ! " 1>&5
  811. ! # Strip out --no-create and --no-recursion so they do not pile up.
  812. ! # Also quote any args containing shell metacharacters.
  813. ! ac_configure_args=
  814. ! for ac_arg
  815. ! do
  816. !   case "$ac_arg" in
  817. !   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  818. !   | --no-cr | --no-c) ;;
  819. !   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  820. !   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  821. !   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  822. !   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  823. !   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  824. !   esac
  825. ! done
  826.   
  827.   # NLS nuisances.
  828. + # Only set LANG and LC_ALL to C if already set.
  829.   # These must not be set unconditionally because not all systems understand
  830.   # e.g. LANG=C (notably SCO).
  831. ! if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  832. ! if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  833.   
  834. ! # confdefs.h avoids OS command line length limits that DEFS can exceed.
  835. ! rm -rf conftest* confdefs.h
  836.   # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  837.   echo > confdefs.h
  838.   
  839.   # A filename unique to this package, relative to the directory that
  840.   # configure is in, which we can look for to find out if srcdir is correct.
  841. ! ac_unique_file=web2c/web2c.c
  842.   
  843.   # Find the source files, if location was not specified.
  844.   if test -z "$srcdir"; then
  845. !   ac_srcdir_defaulted=yes
  846. !   # Try the directory containing this script, then its parent.
  847. !   ac_prog=$0
  848. !   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  849. !   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  850. !   srcdir=$ac_confdir
  851. !   if test ! -r $srcdir/$ac_unique_file; then
  852.       srcdir=..
  853.     fi
  854. + else
  855. +   ac_srcdir_defaulted=no
  856.   fi
  857. ! if test ! -r $srcdir/$ac_unique_file; then
  858. !   if test "$ac_srcdir_defaulted" = yes; then
  859. !     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  860.     else
  861. !     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  862.     fi
  863.   fi
  864. ! srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  865.   
  866. + # Prefer explicitly selected file to automatically selected ones.
  867. + if test -z "$CONFIG_SITE"; then
  868. +   if test "x$prefix" != xNONE; then
  869. +     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  870. +   else
  871. +     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  872. +   fi
  873. + fi
  874. + for ac_site_file in $CONFIG_SITE; do
  875. +   if test -r "$ac_site_file"; then
  876. +     echo "loading site script $ac_site_file"
  877. +     . "$ac_site_file"
  878. +   fi
  879. + done
  880. + if test -r "$cache_file"; then
  881. +   echo "loading cache $cache_file"
  882. +   . $cache_file
  883. + else
  884. +   echo "creating cache $cache_file"
  885. +   > $cache_file
  886. + fi
  887. + ac_ext=c
  888. + # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  889. + ac_cpp='$CPP $CPPFLAGS'
  890. + ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
  891. + ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
  892. + if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  893. +   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  894. +   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  895. +     ac_n= ac_c='
  896. + ' ac_t='    '
  897. +   else
  898. +     ac_n=-n ac_c= ac_t=
  899. +   fi
  900. + else
  901. +   ac_n= ac_c='\c' ac_t=
  902. + fi
  903.   
  904.   
  905.   
  906. ***************
  907. *** 136,462 ****
  908.   
  909.   
  910. ! if test -z "$CC"; then
  911. !   # Extract the first word of `gcc', so it can be a program name with args.
  912. !   set dummy gcc; word=$2
  913. !   echo checking for $word
  914. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  915. !   for dir in $PATH; do
  916. !     test -z "$dir" && dir=.
  917. !     if test -f $dir/$word; then
  918. !       CC="gcc"
  919.         break
  920.       fi
  921.     done
  922. !   IFS="$saveifs"
  923.   fi
  924. ! test -z "$CC" && CC="cc"
  925. ! test -n "$CC" && test -n "$verbose" && echo "    setting CC to $CC"
  926.   
  927. ! # Find out if we are using GNU C, under whatever name.
  928. ! cat > conftest.c <<EOF
  929.   #ifdef __GNUC__
  930. !   yes
  931.   #endif
  932.   EOF
  933. ! ${CC-cc} -E conftest.c > conftest.out 2>&1
  934. ! if egrep yes conftest.out >/dev/null 2>&1; then
  935. !   GCC=1 # For later tests.
  936.   fi
  937. ! rm -f conftest*
  938. ! echo checking how to run the C preprocessor
  939. ! if test -z "$CPP"; then
  940. !   # This must be in double quotes, not single quotes, because CPP may get
  941. !   # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  942. !   # make.  It must be expanded now.
  943. !   CPP="${CC-cc} -E"
  944. !   cat > conftest.c <<EOF
  945. ! #include "confdefs.h"
  946. ! #include <stdio.h>
  947. ! Syntax Error
  948. ! EOF
  949. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  950. ! if test -z "$err"; then
  951. !   :
  952.   else
  953. !   rm -rf conftest*
  954. !   CPP=/lib/cpp
  955.   fi
  956.   rm -f conftest*
  957.   fi
  958. - test ".${verbose}" != "." && echo "    setting CPP to $CPP"
  959.   
  960. ! # Make sure to not get the incompatible SysV /etc/install and
  961. ! # /usr/sbin/install, which might be in PATH before a BSD-like install,
  962. ! # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  963. ! # or the AFS install, which mishandles nonexistent args, or
  964. ! # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  965. ! # `staff'.  On most BSDish systems install is in /usr/bin, not /usr/ucb
  966. ! # anyway.  Sigh.
  967. ! if test "z${INSTALL}" = "z" ; then
  968. !   echo checking for install
  969. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  970. !   for dir in $PATH; do
  971. !     test -z "$dir" && dir=.
  972. !     case $dir in
  973. !     /etc|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  974.       *)
  975. !       if test -f $dir/installbsd; then
  976. !     INSTALL="$dir/installbsd -c" # OSF1
  977. !     INSTALL_PROGRAM='$(INSTALL)'
  978. !     INSTALL_DATA='$(INSTALL) -m 644'
  979. !     break
  980. !       fi
  981. !       if test -f $dir/install; then
  982. !     if grep dspmsg $dir/install >/dev/null 2>&1; then
  983. !       : # AIX
  984. !     else
  985. !       INSTALL="$dir/install -c"
  986. !       INSTALL_PROGRAM='$(INSTALL)'
  987. !       INSTALL_DATA='$(INSTALL) -m 644'
  988. !       break
  989.       fi
  990. !       fi
  991.         ;;
  992.       esac
  993.     done
  994. !   IFS="$saveifs"
  995.   fi
  996. ! INSTALL=${INSTALL-cp}
  997. ! test -n "$verbose" && echo "    setting INSTALL to $INSTALL"
  998. ! INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
  999. ! test -n "$verbose" && echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  1000. ! INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}
  1001. ! test -n "$verbose" && echo "    setting INSTALL_DATA to $INSTALL_DATA"
  1002. ! if test -z "$RANLIB"; then
  1003. !   # Extract the first word of `ranlib', so it can be a program name with args.
  1004. !   set dummy ranlib; word=$2
  1005. !   echo checking for $word
  1006. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  1007. !   for dir in $PATH; do
  1008. !     test -z "$dir" && dir=.
  1009. !     if test -f $dir/$word; then
  1010. !       RANLIB="ranlib"
  1011.         break
  1012.       fi
  1013.     done
  1014. !   IFS="$saveifs"
  1015.   fi
  1016. - test -z "$RANLIB" && RANLIB=":"
  1017. - test -n "$RANLIB" && test -n "$verbose" && echo "    setting RANLIB to $RANLIB"
  1018.   
  1019.   
  1020. ! echo checking for POSIXized ISC
  1021.   if test -d /etc/conf/kconfig.d &&
  1022.     grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  1023.   then
  1024. !   ISC=1 # If later tests want to check for ISC.
  1025. !   
  1026. ! {
  1027. ! test -n "$verbose" && \
  1028. ! echo "    defining _POSIX_SOURCE"
  1029. ! echo "#define" _POSIX_SOURCE 1 >> confdefs.h
  1030. ! DEFS="$DEFS -D_POSIX_SOURCE=1"
  1031. ! SEDDEFS="${SEDDEFS}\${SEDdA}_POSIX_SOURCE\${SEDdB}_POSIX_SOURCE\${SEDdC}1\${SEDdD}
  1032. ! \${SEDuA}_POSIX_SOURCE\${SEDuB}_POSIX_SOURCE\${SEDuC}1\${SEDuD}
  1033. ! \${SEDeA}_POSIX_SOURCE\${SEDeB}_POSIX_SOURCE\${SEDeC}1\${SEDeD}
  1034. ! "
  1035. ! }
  1036.   
  1037. !   if test -n "$GCC"; then
  1038.       CC="$CC -posix"
  1039.     else
  1040.       CC="$CC -Xp"
  1041.     fi
  1042.   fi
  1043.   
  1044.   
  1045. ! echo checking for directory library header
  1046. ! dirheader=
  1047. ! if test -z "$dirheader"; then
  1048. !   echo checking for dirent.h
  1049. ! cat > conftest.c <<EOF
  1050.   #include "confdefs.h"
  1051.   #include <sys/types.h>
  1052. ! #include <dirent.h>
  1053. ! int main() { exit(0); }
  1054. ! int t() { DIR *dirp = 0; }
  1055.   EOF
  1056. ! if eval $compile; then
  1057.     rm -rf conftest*
  1058. !   
  1059. ! {
  1060. ! test -n "$verbose" && \
  1061. ! echo "    defining DIRENT"
  1062. ! echo "#define" DIRENT 1 >> confdefs.h
  1063. ! DEFS="$DEFS -DDIRENT=1"
  1064. ! SEDDEFS="${SEDDEFS}\${SEDdA}DIRENT\${SEDdB}DIRENT\${SEDdC}1\${SEDdD}
  1065. ! \${SEDuA}DIRENT\${SEDuB}DIRENT\${SEDuC}1\${SEDuD}
  1066. ! \${SEDeA}DIRENT\${SEDeB}DIRENT\${SEDeC}1\${SEDeD}
  1067. ! "
  1068. ! }
  1069. !  dirheader=dirent.h
  1070.   fi
  1071.   rm -f conftest*
  1072.   fi
  1073. ! if test -z "$dirheader"; then
  1074. !   echo checking for sys/ndir.h
  1075. ! cat > conftest.c <<EOF
  1076.   #include "confdefs.h"
  1077. ! #include <sys/types.h>
  1078. ! #include <sys/ndir.h>
  1079. ! int main() { exit(0); }
  1080. ! int t() { DIR *dirp = 0; }
  1081.   EOF
  1082. ! if eval $compile; then
  1083.     rm -rf conftest*
  1084. !   
  1085. ! {
  1086. ! test -n "$verbose" && \
  1087. ! echo "    defining SYSNDIR"
  1088. ! echo "#define" SYSNDIR 1 >> confdefs.h
  1089. ! DEFS="$DEFS -DSYSNDIR=1"
  1090. ! SEDDEFS="${SEDDEFS}\${SEDdA}SYSNDIR\${SEDdB}SYSNDIR\${SEDdC}1\${SEDdD}
  1091. ! \${SEDuA}SYSNDIR\${SEDuB}SYSNDIR\${SEDuC}1\${SEDuD}
  1092. ! \${SEDeA}SYSNDIR\${SEDeB}SYSNDIR\${SEDeC}1\${SEDeD}
  1093. ! "
  1094. ! }
  1095. !  dirheader=sys/ndir.h
  1096.   fi
  1097.   rm -f conftest*
  1098.   fi
  1099. ! if test -z "$dirheader"; then
  1100. !   echo checking for sys/dir.h
  1101. ! cat > conftest.c <<EOF
  1102.   #include "confdefs.h"
  1103. ! #include <sys/types.h>
  1104. ! #include <sys/dir.h>
  1105. ! int main() { exit(0); }
  1106. ! int t() { DIR *dirp = 0; }
  1107.   EOF
  1108. ! if eval $compile; then
  1109.     rm -rf conftest*
  1110. !   
  1111. ! {
  1112. ! test -n "$verbose" && \
  1113. ! echo "    defining SYSDIR"
  1114. ! echo "#define" SYSDIR 1 >> confdefs.h
  1115. ! DEFS="$DEFS -DSYSDIR=1"
  1116. ! SEDDEFS="${SEDDEFS}\${SEDdA}SYSDIR\${SEDdB}SYSDIR\${SEDdC}1\${SEDdD}
  1117. ! \${SEDuA}SYSDIR\${SEDuB}SYSDIR\${SEDuC}1\${SEDuD}
  1118. ! \${SEDeA}SYSDIR\${SEDeB}SYSDIR\${SEDeC}1\${SEDeD}
  1119. ! "
  1120. ! }
  1121. !  dirheader=sys/dir.h
  1122.   fi
  1123.   rm -f conftest*
  1124.   fi
  1125. ! if test -z "$dirheader"; then
  1126. !   echo checking for ndir.h
  1127. ! cat > conftest.c <<EOF
  1128.   #include "confdefs.h"
  1129. ! #include <sys/types.h>
  1130. ! #include <ndir.h>
  1131. ! int main() { exit(0); }
  1132. ! int t() { DIR *dirp = 0; }
  1133.   EOF
  1134. ! if eval $compile; then
  1135.     rm -rf conftest*
  1136. !   
  1137. ! {
  1138. ! test -n "$verbose" && \
  1139. ! echo "    defining NDIR"
  1140. ! echo "#define" NDIR 1 >> confdefs.h
  1141. ! DEFS="$DEFS -DNDIR=1"
  1142. ! SEDDEFS="${SEDDEFS}\${SEDdA}NDIR\${SEDdB}NDIR\${SEDdC}1\${SEDdD}
  1143. ! \${SEDuA}NDIR\${SEDuB}NDIR\${SEDuC}1\${SEDuD}
  1144. ! \${SEDeA}NDIR\${SEDeB}NDIR\${SEDeC}1\${SEDeD}
  1145. ! "
  1146. ! }
  1147. !  dirheader=ndir.h
  1148.   fi
  1149.   rm -f conftest*
  1150.   fi
  1151.   
  1152. ! echo checking for closedir return value
  1153. ! cat > conftest.c <<EOF
  1154.   #include "confdefs.h"
  1155. ! #include <sys/types.h>
  1156. ! #include <$dirheader>
  1157. ! int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  1158.   EOF
  1159. ! eval $compile
  1160.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1161. !   :
  1162.   else
  1163. !   
  1164. ! {
  1165. ! test -n "$verbose" && \
  1166. ! echo "    defining VOID_CLOSEDIR"
  1167. ! echo "#define" VOID_CLOSEDIR 1 >> confdefs.h
  1168. ! DEFS="$DEFS -DVOID_CLOSEDIR=1"
  1169. ! SEDDEFS="${SEDDEFS}\${SEDdA}VOID_CLOSEDIR\${SEDdB}VOID_CLOSEDIR\${SEDdC}1\${SEDdD}
  1170. ! \${SEDuA}VOID_CLOSEDIR\${SEDuB}VOID_CLOSEDIR\${SEDuC}1\${SEDuD}
  1171. ! \${SEDeA}VOID_CLOSEDIR\${SEDeB}VOID_CLOSEDIR\${SEDeC}1\${SEDeD}
  1172. ! "
  1173. ! }
  1174.   fi
  1175.   rm -fr conftest*
  1176.   
  1177. ! echo checking for Xenix
  1178. ! cat > conftest.c <<EOF
  1179.   #include "confdefs.h"
  1180. ! #if defined(M_XENIX) && !defined(M_UNIX)
  1181. !   yes
  1182. ! #endif
  1183.   EOF
  1184. ! eval "$CPP conftest.c > conftest.out 2>&1"
  1185. ! if egrep "yes" conftest.out >/dev/null 2>&1; then
  1186.     rm -rf conftest*
  1187. !   XENIX=1
  1188.   
  1189.   fi
  1190.   rm -f conftest*
  1191.   
  1192. - if test -n "$XENIX"; then
  1193. -   LIBS="$LIBS -lx"
  1194. -   case "$DEFS" in
  1195. -   *SYSNDIR*) ;;
  1196. -   *) LIBS="-ldir $LIBS" ;; # Make sure -ldir precedes any -lx.
  1197. -   esac
  1198.   fi
  1199.   
  1200. ! echo checking for ANSI C header files
  1201. ! cat > conftest.c <<EOF
  1202.   #include "confdefs.h"
  1203.   #include <stdlib.h>
  1204. - #include <stdarg.h>
  1205. - #include <string.h>
  1206. - #include <float.h>
  1207.   EOF
  1208. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1209. ! if test -z "$err"; then
  1210. !   rm -rf conftest*
  1211. !   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1212. ! echo '#include "confdefs.h"
  1213. ! #include <string.h>' > conftest.c
  1214. ! eval "$CPP conftest.c > conftest.out 2>&1"
  1215. ! if egrep "memchr" conftest.out >/dev/null 2>&1; then
  1216.     rm -rf conftest*
  1217. !   # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1218. ! cat > conftest.c <<EOF
  1219.   #include "confdefs.h"
  1220.   #include <ctype.h>
  1221.   #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1222.   #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1223. ! #define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
  1224.   int main () { int i; for (i = 0; i < 256; i++)
  1225.   if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1226. --- 407,889 ----
  1227.   
  1228.   
  1229. ! echo $ac_n "checking whether ${MAKE-make} sets \$MAKE""... $ac_c" 1>&4
  1230. ! set dummy ${MAKE-make}; ac_make=$2
  1231. ! if eval "test \"`echo '${'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  1232. !   echo $ac_n "(cached) $ac_c" 1>&4
  1233. ! else
  1234. !   cat > conftestmake <<\EOF
  1235. ! all:
  1236. !     @echo 'ac_maketemp="${MAKE}"'
  1237. ! EOF
  1238. ! # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1239. ! eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  1240. ! if test -n "$ac_maketemp"; then
  1241. !   eval ac_cv_prog_make_${ac_make}_set=yes
  1242. ! else
  1243. !   eval ac_cv_prog_make_${ac_make}_set=no
  1244. ! fi
  1245. ! rm -f conftestmake
  1246. ! fi
  1247. ! if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1248. !   echo "$ac_t""yes" 1>&4
  1249. !   SET_MAKE=
  1250. ! else
  1251. !   echo "$ac_t""no" 1>&4
  1252. !   SET_MAKE="MAKE=${MAKE-make}"
  1253. ! fi
  1254. ! # Extract the first word of "gcc", so it can be a program name with args.
  1255. ! set dummy gcc; ac_word=$2
  1256. ! echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  1257. ! if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
  1258. !   echo $ac_n "(cached) $ac_c" 1>&4
  1259. ! else
  1260. !   if test -n "$CC"; then
  1261. !   ac_cv_prog_CC="$CC" # Let the user override the test.
  1262. ! else
  1263. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1264. !   for ac_dir in $PATH; do
  1265. !     test -z "$ac_dir" && ac_dir=.
  1266. !     if test -f $ac_dir/$ac_word; then
  1267. !       ac_cv_prog_CC="gcc"
  1268.         break
  1269.       fi
  1270.     done
  1271. !   IFS="$ac_save_ifs"
  1272. !   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  1273. ! fi
  1274.   fi
  1275. ! CC="$ac_cv_prog_CC"
  1276. ! if test -n "$CC"; then
  1277. !   echo "$ac_t""$CC" 1>&4
  1278. ! else
  1279. !   echo "$ac_t""no" 1>&4
  1280. ! fi
  1281.   
  1282. ! echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
  1283. ! if eval "test \"`echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
  1284. !   echo $ac_n "(cached) $ac_c" 1>&4
  1285. ! else
  1286. !   cat > conftest.c <<EOF
  1287.   #ifdef __GNUC__
  1288. !   yes;
  1289.   #endif
  1290.   EOF
  1291. ! if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  1292. !   ac_cv_prog_gcc=yes
  1293. ! else
  1294. !   ac_cv_prog_gcc=no
  1295.   fi
  1296. ! fi
  1297. ! echo "$ac_t""$ac_cv_prog_gcc" 1>&4
  1298. ! if test $ac_cv_prog_gcc = yes; then
  1299. !   GCC=yes
  1300. !   if test "${CFLAGS+set}" != set; then
  1301. !     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
  1302. ! if eval "test \"`echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  1303. !   echo $ac_n "(cached) $ac_c" 1>&4
  1304.   else
  1305. !   echo 'void f(){}' > conftest.c
  1306. ! if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1307. !   ac_cv_prog_gcc_g=yes
  1308. ! else
  1309. !   ac_cv_prog_gcc_g=no
  1310.   fi
  1311.   rm -f conftest*
  1312. + fi
  1313. +     echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
  1314. +     if test $ac_cv_prog_gcc_g = yes; then
  1315. +       CFLAGS="-g -O"
  1316. +     else
  1317. +       CFLAGS="-O"
  1318. +     fi
  1319. +   fi
  1320. + else
  1321. +   GCC=
  1322. +   test "${CFLAGS+set}" = set || CFLAGS="-g"
  1323.   fi
  1324.   
  1325. ! ac_aux_dir=
  1326. ! for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1327. !   if test -f $ac_dir/install-sh; then
  1328. !     ac_aux_dir=$ac_dir
  1329. !     ac_install_sh="$ac_aux_dir/install-sh -c"
  1330. !     break
  1331. !   elif test -f $ac_dir/install.sh; then
  1332. !     ac_aux_dir=$ac_dir
  1333. !     ac_install_sh="$ac_aux_dir/install.sh -c"
  1334. !     break
  1335. !   fi
  1336. ! done
  1337. ! if test -z "$ac_aux_dir"; then
  1338. !   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  1339. ! fi
  1340. ! ac_config_guess=$ac_aux_dir/config.guess
  1341. ! ac_config_sub=$ac_aux_dir/config.sub
  1342. ! ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1343. ! # Find a good install program.  We prefer a C program (faster),
  1344. ! # so one script is as good as another.  But avoid the broken or
  1345. ! # incompatible versions:
  1346. ! # SysV /etc/install, /usr/sbin/install
  1347. ! # SunOS /usr/etc/install
  1348. ! # IRIX /sbin/install
  1349. ! # AIX /bin/install
  1350. ! # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1351. ! # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1352. ! # ./install, which can be erroneously created by make from ./install.sh.
  1353. ! echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
  1354. ! if test -z "$INSTALL"; then
  1355. ! if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
  1356. !   echo $ac_n "(cached) $ac_c" 1>&4
  1357. ! else
  1358. !     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1359. !   for ac_dir in $PATH; do
  1360. !     case "$ac_dir" in
  1361. !     ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;;
  1362.       *)
  1363. !       # OSF1 and SCO ODT 3.0 have their own names for install.
  1364. !       for ac_prog in ginstall installbsd scoinst install; do
  1365. !         if test -f $ac_dir/$ac_prog; then
  1366. !       if test $ac_prog = install &&
  1367. !             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1368. !         # AIX install.  It has an incompatible calling convention.
  1369. !         # OSF/1 installbsd also uses dspmsg, but is usable.
  1370. !         :
  1371. !       else
  1372. !         ac_cv_path_install="$ac_dir/$ac_prog -c"
  1373. !         break 2
  1374. !       fi
  1375.       fi
  1376. !       done
  1377.         ;;
  1378.       esac
  1379.     done
  1380. !   IFS="$ac_save_ifs"
  1381. !   # As a last resort, use the slow shell script.
  1382. !   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  1383.   fi
  1384. !   INSTALL="$ac_cv_path_install"
  1385. ! fi
  1386. ! echo "$ac_t""$INSTALL" 1>&4
  1387. ! # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1388. ! # It thinks the first close brace ends the variable substitution.
  1389. ! test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1390. ! test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1391. ! # Extract the first word of "ranlib", so it can be a program name with args.
  1392. ! set dummy ranlib; ac_word=$2
  1393. ! echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  1394. ! if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1395. !   echo $ac_n "(cached) $ac_c" 1>&4
  1396. ! else
  1397. !   if test -n "$RANLIB"; then
  1398. !   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1399. ! else
  1400. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1401. !   for ac_dir in $PATH; do
  1402. !     test -z "$ac_dir" && ac_dir=.
  1403. !     if test -f $ac_dir/$ac_word; then
  1404. !       ac_cv_prog_RANLIB="ranlib"
  1405.         break
  1406.       fi
  1407.     done
  1408. !   IFS="$ac_save_ifs"
  1409. !   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1410. ! fi
  1411. ! fi
  1412. ! RANLIB="$ac_cv_prog_RANLIB"
  1413. ! if test -n "$RANLIB"; then
  1414. !   echo "$ac_t""$RANLIB" 1>&4
  1415. ! else
  1416. !   echo "$ac_t""no" 1>&4
  1417.   fi
  1418.   
  1419.   
  1420. ! echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&4
  1421.   if test -d /etc/conf/kconfig.d &&
  1422.     grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  1423.   then
  1424. !   echo "$ac_t""yes" 1>&4
  1425. !   ISC=yes # If later tests want to check for ISC.
  1426. !   cat >> confdefs.h <<\EOF
  1427. ! #define _POSIX_SOURCE 1
  1428. ! EOF
  1429.   
  1430. !   if test "$GCC" = yes; then
  1431.       CC="$CC -posix"
  1432.     else
  1433.       CC="$CC -Xp"
  1434.     fi
  1435. + else
  1436. +   echo "$ac_t""no" 1>&4
  1437. +   ISC=
  1438.   fi
  1439.   
  1440.   
  1441. ! ac_header_dirent=no
  1442. ! for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1443. ! do
  1444. ! ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1445. ! echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&4
  1446. ! if eval "test \"`echo '${'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1447. !   echo $ac_n "(cached) $ac_c" 1>&4
  1448. ! else
  1449. !   cat > conftest.$ac_ext <<EOF
  1450. ! #line 639 "configure"
  1451.   #include "confdefs.h"
  1452.   #include <sys/types.h>
  1453. ! #include <$ac_hdr>
  1454. ! int main() { return 0; }
  1455. ! int t() {
  1456. ! DIR *dirp = 0;
  1457. ! ; return 0; }
  1458.   EOF
  1459. ! if eval $ac_compile; then
  1460.     rm -rf conftest*
  1461. !   eval "ac_cv_header_dirent_$ac_safe=yes"
  1462. ! else
  1463. !   rm -rf conftest*
  1464. !   eval "ac_cv_header_dirent_$ac_safe=no"
  1465.   fi
  1466.   rm -f conftest*
  1467.   fi
  1468. ! if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1469. !   echo "$ac_t""yes" 1>&4
  1470. !     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  1471. !   cat >> confdefs.h <<EOF
  1472. ! #define $ac_tr_hdr 1
  1473. ! EOF
  1474. !  ac_header_dirent=$ac_hdr; break
  1475. ! else
  1476. !   echo "$ac_t""no" 1>&4
  1477. ! fi
  1478. ! done
  1479. ! # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1480. ! if test $ac_header_dirent = dirent.h; then
  1481. ! echo $ac_n "checking for -ldir""... $ac_c" 1>&4
  1482. ! if eval "test \"`echo '${'ac_cv_lib_dir'+set}'`\" = set"; then
  1483. !   echo $ac_n "(cached) $ac_c" 1>&4
  1484. ! else
  1485. !   ac_save_LIBS="$LIBS"
  1486. ! LIBS="$LIBS -ldir "
  1487. ! cat > conftest.$ac_ext <<EOF
  1488. ! #line 678 "configure"
  1489.   #include "confdefs.h"
  1490. ! int main() { return 0; }
  1491. ! int t() {
  1492. ! opendir()
  1493. ! ; return 0; }
  1494.   EOF
  1495. ! if eval $ac_link; then
  1496.     rm -rf conftest*
  1497. !   eval "ac_cv_lib_dir=yes"
  1498. ! else
  1499. !   rm -rf conftest*
  1500. !   eval "ac_cv_lib_dir=no"
  1501.   fi
  1502.   rm -f conftest*
  1503. + LIBS="$ac_save_LIBS"
  1504. + fi
  1505. + if eval "test \"`echo '$ac_cv_lib_'dir`\" = yes"; then
  1506. +   echo "$ac_t""yes" 1>&4
  1507. +   LIBS="$LIBS -ldir"
  1508. + else
  1509. +   echo "$ac_t""no" 1>&4
  1510.   fi
  1511. ! else
  1512. ! echo $ac_n "checking for -lx""... $ac_c" 1>&4
  1513. ! if eval "test \"`echo '${'ac_cv_lib_x'+set}'`\" = set"; then
  1514. !   echo $ac_n "(cached) $ac_c" 1>&4
  1515. ! else
  1516. !   ac_save_LIBS="$LIBS"
  1517. ! LIBS="$LIBS -lx "
  1518. ! cat > conftest.$ac_ext <<EOF
  1519. ! #line 712 "configure"
  1520.   #include "confdefs.h"
  1521. ! int main() { return 0; }
  1522. ! int t() {
  1523. ! opendir()
  1524. ! ; return 0; }
  1525.   EOF
  1526. ! if eval $ac_link; then
  1527.     rm -rf conftest*
  1528. !   eval "ac_cv_lib_x=yes"
  1529. ! else
  1530. !   rm -rf conftest*
  1531. !   eval "ac_cv_lib_x=no"
  1532.   fi
  1533.   rm -f conftest*
  1534. + LIBS="$ac_save_LIBS"
  1535. + fi
  1536. + if eval "test \"`echo '$ac_cv_lib_'x`\" = yes"; then
  1537. +   echo "$ac_t""yes" 1>&4
  1538. +   LIBS="$LIBS -lx"
  1539. + else
  1540. +   echo "$ac_t""no" 1>&4
  1541. + fi
  1542.   fi
  1543. ! echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
  1544. ! # On Suns, sometimes $CPP names a directory.
  1545. ! if test -n "$CPP" && test -d "$CPP"; then
  1546. !   CPP=
  1547. ! fi
  1548. ! if test -z "$CPP"; then
  1549. ! if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
  1550. !   echo $ac_n "(cached) $ac_c" 1>&4
  1551. ! else
  1552. !     # This must be in double quotes, not single quotes, because CPP may get
  1553. !   # substituted into the Makefile and "${CC-cc}" will confuse make.
  1554. !   CPP="${CC-cc} -E"
  1555. !   # On the NeXT, cc -E runs the code through the compiler's parser,
  1556. !   # not just through cpp.
  1557. !   cat > conftest.$ac_ext <<EOF
  1558. ! #line 755 "configure"
  1559.   #include "confdefs.h"
  1560. ! #include <assert.h>
  1561. ! Syntax Error
  1562.   EOF
  1563. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1564. ! ac_err=`grep -v '^ *+' conftest.out`
  1565. ! if test -z "$ac_err"; then
  1566. !   :
  1567. ! else
  1568. !   echo "$ac_err" >&5
  1569.     rm -rf conftest*
  1570. !   CPP="${CC-cc} -E -traditional-cpp"
  1571. !   cat > conftest.$ac_ext <<EOF
  1572. ! #line 769 "configure"
  1573. ! #include "confdefs.h"
  1574. ! #include <assert.h>
  1575. ! Syntax Error
  1576. ! EOF
  1577. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1578. ! ac_err=`grep -v '^ *+' conftest.out`
  1579. ! if test -z "$ac_err"; then
  1580. !   :
  1581. ! else
  1582. !   echo "$ac_err" >&5
  1583. !   rm -rf conftest*
  1584. !   CPP=/lib/cpp
  1585.   fi
  1586.   rm -f conftest*
  1587.   fi
  1588. + rm -f conftest*
  1589. +   ac_cv_prog_CPP="$CPP"
  1590. + fi
  1591. + fi
  1592. + CPP="$ac_cv_prog_CPP"
  1593. + echo "$ac_t""$CPP" 1>&4
  1594.   
  1595. ! # If we cannot run a trivial program, we must be cross compiling.
  1596. ! echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
  1597. ! if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
  1598. !   echo $ac_n "(cached) $ac_c" 1>&4
  1599. ! else
  1600. !   if test "$cross_compiling" = yes; then
  1601. !   ac_cv_cross=yes
  1602. ! else
  1603. ! cat > conftest.$ac_ext <<EOF
  1604. ! #line 801 "configure"
  1605.   #include "confdefs.h"
  1606. ! main(){return(0);}
  1607.   EOF
  1608. ! eval $ac_link
  1609.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1610. !   ac_cv_c_cross=no
  1611.   else
  1612. !   ac_cv_c_cross=yes
  1613. ! fi
  1614.   fi
  1615.   rm -fr conftest*
  1616. + fi
  1617. + cross_compiling=$ac_cv_c_cross
  1618. + echo "$ac_t""$ac_cv_c_cross" 1>&4
  1619.   
  1620. ! echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
  1621. ! if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
  1622. !   echo $ac_n "(cached) $ac_c" 1>&4
  1623. ! else
  1624. !   cat > conftest.$ac_ext <<EOF
  1625. ! #line 822 "configure"
  1626.   #include "confdefs.h"
  1627. ! #include <stdlib.h>
  1628. ! #include <stdarg.h>
  1629. ! #include <string.h>
  1630. ! #include <float.h>
  1631.   EOF
  1632. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1633. ! ac_err=`grep -v '^ *+' conftest.out`
  1634. ! if test -z "$ac_err"; then
  1635.     rm -rf conftest*
  1636. !   ac_cv_header_stdc=yes
  1637. ! else
  1638. !   echo "$ac_err" >&5
  1639. !   rm -rf conftest*
  1640. !   ac_cv_header_stdc=no
  1641. ! fi
  1642. ! rm -f conftest*
  1643.   
  1644. + if test $ac_cv_header_stdc = yes; then
  1645. +   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1646. + cat > conftest.$ac_ext <<EOF
  1647. + #line 844 "configure"
  1648. + #include "confdefs.h"
  1649. + #include <string.h>
  1650. + EOF
  1651. + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1652. +   egrep "memchr" >/dev/null 2>&1; then
  1653. +   :
  1654. + else
  1655. +   rm -rf conftest*
  1656. +   ac_cv_header_stdc=no
  1657.   fi
  1658.   rm -f conftest*
  1659.   
  1660.   fi
  1661.   
  1662. ! if test $ac_cv_header_stdc = yes; then
  1663. !   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1664. ! cat > conftest.$ac_ext <<EOF
  1665. ! #line 862 "configure"
  1666.   #include "confdefs.h"
  1667.   #include <stdlib.h>
  1668.   EOF
  1669. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1670. !   egrep "free" >/dev/null 2>&1; then
  1671. !   :
  1672. ! else
  1673.     rm -rf conftest*
  1674. !   ac_cv_header_stdc=no
  1675. ! fi
  1676. ! rm -f conftest*
  1677. ! fi
  1678. ! if test $ac_cv_header_stdc = yes; then
  1679. !   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1680. ! if test "$cross_compiling" = yes; then
  1681. !   ac_cv_header_stdc=no
  1682. ! else
  1683. ! cat > conftest.$ac_ext <<EOF
  1684. ! #line 883 "configure"
  1685.   #include "confdefs.h"
  1686.   #include <ctype.h>
  1687.   #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1688.   #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1689. ! #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1690.   int main () { int i; for (i = 0; i < 256; i++)
  1691.   if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1692. ***************
  1693. *** 464,566 ****
  1694.   
  1695.   EOF
  1696. ! eval $compile
  1697.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1698. !   
  1699. ! {
  1700. ! test -n "$verbose" && \
  1701. ! echo "    defining STDC_HEADERS"
  1702. ! echo "#define" STDC_HEADERS 1 >> confdefs.h
  1703. ! DEFS="$DEFS -DSTDC_HEADERS=1"
  1704. ! SEDDEFS="${SEDDEFS}\${SEDdA}STDC_HEADERS\${SEDdB}STDC_HEADERS\${SEDdC}1\${SEDdD}
  1705. ! \${SEDuA}STDC_HEADERS\${SEDuB}STDC_HEADERS\${SEDuC}1\${SEDuD}
  1706. ! \${SEDeA}STDC_HEADERS\${SEDeB}STDC_HEADERS\${SEDeC}1\${SEDeD}
  1707. ! "
  1708. ! }
  1709.   fi
  1710.   rm -fr conftest*
  1711.   fi
  1712. ! rm -f conftest*
  1713.   
  1714.   fi
  1715. - rm -f conftest*
  1716.   
  1717. ! for hdr in assert.h float.h limits.h memory.h pwd.h stdlib.h \
  1718. !                 string.h unistd.h
  1719.   do
  1720. ! trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
  1721. ! echo checking for ${hdr}
  1722. ! cat > conftest.c <<EOF
  1723.   #include "confdefs.h"
  1724. ! #include <${hdr}>
  1725.   EOF
  1726. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1727. ! if test -z "$err"; then
  1728.     rm -rf conftest*
  1729. !   
  1730. ! {
  1731. ! test -n "$verbose" && \
  1732. ! echo "    defining ${trhdr}"
  1733. ! echo "#define" ${trhdr} 1 >> confdefs.h
  1734. ! DEFS="$DEFS -D${trhdr}=1"
  1735. ! SEDDEFS="${SEDDEFS}\${SEDdA}${trhdr}\${SEDdB}${trhdr}\${SEDdC}1\${SEDdD}
  1736. ! \${SEDuA}${trhdr}\${SEDuB}${trhdr}\${SEDuC}1\${SEDuD}
  1737. ! \${SEDeA}${trhdr}\${SEDeB}${trhdr}\${SEDeC}1\${SEDeD}
  1738. ! "
  1739. ! }
  1740.   fi
  1741.   rm -f conftest*
  1742.   done
  1743.   
  1744.   
  1745. ! for func in memmove putenv
  1746.   do
  1747. ! trfunc=HAVE_`echo $func | tr '[a-z]' '[A-Z]'`
  1748. ! echo checking for ${func}
  1749. ! cat > conftest.c <<EOF
  1750.   #include "confdefs.h"
  1751. ! #include <ctype.h>
  1752. ! int main() { exit(0); }
  1753. ! int t() { 
  1754.   /* The GNU C library defines this for functions which it implements
  1755.       to always fail with ENOSYS.  Some functions are actually named
  1756.       something starting with __ and the normal name is an alias.  */
  1757. ! #if defined (__stub_${func}) || defined (__stub___${func})
  1758.   choke me
  1759.   #else
  1760. ! /* Override any gcc2 internal prototype to avoid an error.  */
  1761. ! extern char ${func}(); ${func}();
  1762.   #endif
  1763. !  }
  1764.   EOF
  1765. ! if eval $compile; then
  1766.     rm -rf conftest*
  1767. !   {
  1768. ! test -n "$verbose" && \
  1769. ! echo "    defining ${trfunc}"
  1770. ! echo "#define" ${trfunc} 1 >> confdefs.h
  1771. ! DEFS="$DEFS -D${trfunc}=1"
  1772. ! SEDDEFS="${SEDDEFS}\${SEDdA}${trfunc}\${SEDdB}${trfunc}\${SEDdC}1\${SEDdD}
  1773. ! \${SEDuA}${trfunc}\${SEDuB}${trfunc}\${SEDuC}1\${SEDuD}
  1774. ! \${SEDeA}${trfunc}\${SEDeB}${trfunc}\${SEDeC}1\${SEDeD}
  1775. ! "
  1776. ! }
  1777.   
  1778.   
  1779.   fi
  1780.   rm -f conftest*
  1781.   done
  1782.   
  1783.   
  1784. ! prog='/* Ultrix mips cc rejects this.  */
  1785.   typedef int charset[2]; const charset x;
  1786.   /* SunOS 4.1.1 cc rejects this.  */
  1787.   char const *const *ccp;
  1788.   char **p;
  1789.   /* AIX XL C 1.02.0.0 rejects this.
  1790.      It does not let you subtract one const X* pointer from another in an arm
  1791. --- 891,1066 ----
  1792.   
  1793.   EOF
  1794. ! eval $ac_link
  1795.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1796. !   :
  1797. ! else
  1798. !   ac_cv_header_stdc=no
  1799. ! fi
  1800.   fi
  1801.   rm -fr conftest*
  1802.   fi
  1803. ! fi
  1804. ! echo "$ac_t""$ac_cv_header_stdc" 1>&4
  1805. ! if test $ac_cv_header_stdc = yes; then
  1806. !   cat >> confdefs.h <<\EOF
  1807. ! #define STDC_HEADERS 1
  1808. ! EOF
  1809.   
  1810.   fi
  1811.   
  1812. ! for ac_hdr in assert.h float.h limits.h memory.h pwd.h stdlib.h \
  1813. !                  string.h unistd.h
  1814.   do
  1815. ! ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1816. ! echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  1817. ! if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1818. !   echo $ac_n "(cached) $ac_c" 1>&4
  1819. ! else
  1820. !   cat > conftest.$ac_ext <<EOF
  1821. ! #line 921 "configure"
  1822.   #include "confdefs.h"
  1823. ! #include <$ac_hdr>
  1824.   EOF
  1825. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1826. ! ac_err=`grep -v '^ *+' conftest.out`
  1827. ! if test -z "$ac_err"; then
  1828.     rm -rf conftest*
  1829. !   eval "ac_cv_header_$ac_safe=yes"
  1830. ! else
  1831. !   echo "$ac_err" >&5
  1832. !   rm -rf conftest*
  1833. !   eval "ac_cv_header_$ac_safe=no"
  1834.   fi
  1835.   rm -f conftest*
  1836. + fi
  1837. + if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1838. +   echo "$ac_t""yes" 1>&4
  1839. +     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  1840. +   cat >> confdefs.h <<EOF
  1841. + #define $ac_tr_hdr 1
  1842. + EOF
  1843. +  
  1844. + else
  1845. +   echo "$ac_t""no" 1>&4
  1846. + fi
  1847.   done
  1848.   
  1849.   
  1850. ! for ac_func in bcopy memmove putenv
  1851.   do
  1852. ! echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  1853. ! if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1854. !   echo $ac_n "(cached) $ac_c" 1>&4
  1855. ! else
  1856. !   cat > conftest.$ac_ext <<EOF
  1857. ! #line 957 "configure"
  1858.   #include "confdefs.h"
  1859. ! #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1860. ! /* Override any gcc2 internal prototype to avoid an error.  */
  1861. ! char $ac_func(); 
  1862. ! int main() { return 0; }
  1863. ! int t() {
  1864.   /* The GNU C library defines this for functions which it implements
  1865.       to always fail with ENOSYS.  Some functions are actually named
  1866.       something starting with __ and the normal name is an alias.  */
  1867. ! #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1868.   choke me
  1869.   #else
  1870. ! $ac_func();
  1871.   #endif
  1872. ! ; return 0; }
  1873.   EOF
  1874. ! if eval $ac_link; then
  1875.     rm -rf conftest*
  1876. !   eval "ac_cv_func_$ac_func=yes"
  1877. ! else
  1878. !   rm -rf conftest*
  1879. !   eval "ac_cv_func_$ac_func=no"
  1880. ! fi
  1881. ! rm -f conftest*
  1882.   
  1883. + fi
  1884. + if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1885. +   echo "$ac_t""yes" 1>&4
  1886. +     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1887. +   cat >> confdefs.h <<EOF
  1888. + #define $ac_tr_func 1
  1889. + EOF
  1890. +  
  1891. + else
  1892. +   echo "$ac_t""no" 1>&4
  1893. + fi
  1894. + done
  1895.   
  1896. + for ac_func in basename
  1897. + do
  1898. + echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  1899. + if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1900. +   echo $ac_n "(cached) $ac_c" 1>&4
  1901. + else
  1902. +   cat > conftest.$ac_ext <<EOF
  1903. + #line 1006 "configure"
  1904. + #include "confdefs.h"
  1905. + #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1906. + /* Override any gcc2 internal prototype to avoid an error.  */
  1907. + char $ac_func(); 
  1908. + int main() { return 0; }
  1909. + int t() {
  1910. + /* The GNU C library defines this for functions which it implements
  1911. +     to always fail with ENOSYS.  Some functions are actually named
  1912. +     something starting with __ and the normal name is an alias.  */
  1913. + #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1914. + choke me
  1915. + #else
  1916. + $ac_func();
  1917. + #endif
  1918. + ; return 0; }
  1919. + EOF
  1920. + if eval $ac_link; then
  1921. +   rm -rf conftest*
  1922. +   eval "ac_cv_func_$ac_func=yes"
  1923. + else
  1924. +   rm -rf conftest*
  1925. +   eval "ac_cv_func_$ac_func=no"
  1926.   fi
  1927.   rm -f conftest*
  1928. + fi
  1929. + if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1930. +   echo "$ac_t""yes" 1>&4
  1931. +   :
  1932. + else
  1933. +   echo "$ac_t""no" 1>&4
  1934. + LIBOBJS="$LIBOBJS ${ac_func}.o"
  1935. + fi
  1936.   done
  1937.   
  1938.   
  1939. ! echo $ac_n "checking for working const""... $ac_c" 1>&4
  1940. ! if eval "test \"`echo '${'ac_cv_c_const'+set}'`\" = set"; then
  1941. !   echo $ac_n "(cached) $ac_c" 1>&4
  1942. ! else
  1943. !   cat > conftest.$ac_ext <<EOF
  1944. ! #line 1052 "configure"
  1945. ! #include "confdefs.h"
  1946. ! int main() { return 0; }
  1947. ! int t() {
  1948. ! /* Ultrix mips cc rejects this.  */
  1949.   typedef int charset[2]; const charset x;
  1950.   /* SunOS 4.1.1 cc rejects this.  */
  1951.   char const *const *ccp;
  1952.   char **p;
  1953. + /* NEC SVR4.0.2 mips cc rejects this.  */
  1954. + struct point {int x, y;};
  1955. + static struct point const zero;
  1956.   /* AIX XL C 1.02.0.0 rejects this.
  1957.      It does not let you subtract one const X* pointer from another in an arm
  1958. ***************
  1959. *** 579,583 ****
  1960.   }
  1961.   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1962. !   int x[] = {25,17};
  1963.     const int *foo = &x[0];
  1964.     ++foo;
  1965. --- 1079,1083 ----
  1966.   }
  1967.   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1968. !   int x[] = {25, 17};
  1969.     const int *foo = &x[0];
  1970.     ++foo;
  1971. ***************
  1972. *** 595,647 ****
  1973.   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1974.     const int foo = 10;
  1975. ! }'
  1976. ! echo checking for lack of working const
  1977. ! cat > conftest.c <<EOF
  1978. ! #include "confdefs.h"
  1979.   
  1980. ! int main() { exit(0); }
  1981. ! int t() { $prog }
  1982.   EOF
  1983. ! if eval $compile; then
  1984. !   :
  1985.   else
  1986.     rm -rf conftest*
  1987. !   
  1988. ! {
  1989. ! test -n "$verbose" && \
  1990. ! echo "    defining" const to be empty
  1991. ! echo "#define" const  >> confdefs.h
  1992. ! DEFS="$DEFS -Dconst="
  1993. ! SEDDEFS="${SEDDEFS}\${SEDdA}const\${SEDdB}const\${SEDdC}\${SEDdD}
  1994. ! \${SEDuA}const\${SEDuB}const\${SEDuC}\${SEDuD}
  1995. ! \${SEDeA}const\${SEDeB}const\${SEDeC}\${SEDeD}
  1996. ! "
  1997. ! }
  1998.   
  1999.   fi
  2000.   rm -f conftest*
  2001.   
  2002.   
  2003.   
  2004.   
  2005.   
  2006. ! for p in 'bison -y' byacc
  2007.   do
  2008. ! if test -z "$YACC"; then
  2009. !   # Extract the first word of `$p', so it can be a program name with args.
  2010. !   set dummy $p; word=$2
  2011. !   echo checking for $word
  2012. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  2013. !   for dir in $PATH; do
  2014. !     test -z "$dir" && dir=.
  2015. !     if test -f $dir/$word; then
  2016. !       YACC="$p"
  2017.         break
  2018.       fi
  2019.     done
  2020. !   IFS="$saveifs"
  2021.   fi
  2022. - test -n "$YACC" && test -n "$verbose" && echo "    setting YACC to $YACC"
  2023.   
  2024.   test -n "$YACC" && break
  2025. --- 1095,1266 ----
  2026.   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2027.     const int foo = 10;
  2028. ! }
  2029.   
  2030. ! ; return 0; }
  2031.   EOF
  2032. ! if eval $ac_compile; then
  2033. !   rm -rf conftest*
  2034. !   ac_cv_c_const=yes
  2035.   else
  2036.     rm -rf conftest*
  2037. !   ac_cv_c_const=no
  2038. ! fi
  2039. ! rm -f conftest*
  2040. ! fi
  2041. ! echo "$ac_t""$ac_cv_c_const" 1>&4
  2042. ! if test $ac_cv_c_const = no; then
  2043. !   cat >> confdefs.h <<\EOF
  2044. ! #define const 
  2045. ! EOF
  2046.   
  2047.   fi
  2048. + # This is a GNU libc invention.
  2049. + echo $ac_n "checking whether program_invocation_name is predefined""... $ac_c" 1>&4
  2050. + if eval "test \"`echo '${'kb_cv_var_program_inv_name'+set}'`\" = set"; then
  2051. +   echo $ac_n "(cached) $ac_c" 1>&4
  2052. + else
  2053. +   cat > conftest.$ac_ext <<EOF
  2054. + #line 1128 "configure"
  2055. + #include "confdefs.h"
  2056. + int main() { return 0; }
  2057. + int t() {
  2058. + main() { program_invocation_name = "love"; }
  2059. + ; return 0; }
  2060. + EOF
  2061. + if eval $ac_link; then
  2062. +   rm -rf conftest*
  2063. +   kb_cv_var_program_inv_name=yes
  2064. + else
  2065. +   rm -rf conftest*
  2066. +   kb_cv_var_program_inv_name=no
  2067. + fi
  2068.   rm -f conftest*
  2069.   
  2070. + fi
  2071. + echo "$ac_t""$kb_cv_var_program_inv_name" 1>&4
  2072. + if test $kb_cv_var_program_inv_name = yes; then
  2073. +   cat >> confdefs.h <<\EOF
  2074. + #define HAVE_PROGRAM_INVOCATION_NAME 1
  2075. + EOF
  2076. + fi
  2077.   
  2078. + # Some BSD putenv's, e.g., FreeBSD, do malloc/free's on the environment.
  2079. + # This test program is due to Mike Hibler <mike@cs.utah.edu>.
  2080. + # We don't actually need to run this if we don't have putenv, but it
  2081. + # doesn't hurt.
  2082. + echo $ac_n "checking whether putenv uses malloc""... $ac_c" 1>&4
  2083. + if eval "test \"`echo '${'kb_cv_func_putenv_malloc'+set}'`\" = set"; then
  2084. +   echo $ac_n "(cached) $ac_c" 1>&4
  2085. + else
  2086. +   if test "$cross_compiling" = yes; then
  2087. +   kb_cv_func_putenv_malloc=no
  2088. + else
  2089. + cat > conftest.$ac_ext <<EOF
  2090. + #line 1167 "configure"
  2091. + #include "confdefs.h"
  2092. + #define VAR    "YOW_VAR"
  2093. + #define STRING1 "GabbaGabbaHey"
  2094. + #define STRING2 "Yow!!"        /* should be shorter than STRING1 */
  2095. + extern char *getenv (); /* in case char* and int don't mix gracefully */
  2096. + main ()
  2097. + {
  2098. +   char *str1, *rstr1, *str2, *rstr2;
  2099. +   str1 = getenv (VAR);
  2100. +   if (str1)
  2101. +     exit (1);
  2102. +   str1 = malloc (strlen (VAR) + 1 + strlen (STRING1) + 1);
  2103. +   if (str1 == 0)
  2104. +     exit (2);
  2105. +   strcpy (str1, VAR);
  2106. +   strcat (str1, "=");
  2107. +   strcat (str1, STRING1);
  2108. +   if (putenv (str1) < 0)
  2109. +     exit (3);
  2110. +   rstr1 = getenv (VAR);
  2111. +   if (rstr1 == 0)
  2112. +     exit (4);
  2113. +   rstr1 -= strlen (VAR) + 1;
  2114. +   if (strncmp (rstr1, VAR, strlen (VAR)))
  2115. +     exit (5);
  2116. +   str2 = malloc (strlen (VAR) + 1 + strlen (STRING2) + 1);
  2117. +   if (str2 == 0 || str1 == str2)
  2118. +     exit (6);
  2119. +   strcpy (str2, VAR);
  2120. +   strcat (str2, "=");
  2121. +   strcat (str2, STRING2);
  2122. +   if (putenv (str2) < 0)
  2123. +     exit (7);
  2124. +   rstr2 = getenv (VAR);
  2125. +   if (rstr2 == 0)
  2126. +     exit (8);
  2127. +   rstr2 -= strlen (VAR) + 1;
  2128. + #if 0
  2129. +   printf ("rstr1=0x%x, rstr2=0x%x\n", rstr1, rstr2);
  2130. +   /*
  2131. +    * If string from first call was reused for the second call,
  2132. +    * you had better not do a free on the first string!
  2133. +    */
  2134. +   if (rstr1 == rstr2)
  2135. +           printf ("#define SMART_PUTENV\n");
  2136. +   else
  2137. +           printf ("#undef SMART_PUTENV\n");
  2138. + #endif
  2139. +   exit (rstr1 == rstr2 ? 0 : 1);
  2140. + }
  2141. + EOF
  2142. + eval $ac_link
  2143. + if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2144. +   kb_cv_func_putenv_malloc=yes
  2145. + else
  2146. +   kb_cv_func_putenv_malloc=no
  2147. + fi
  2148. + fi
  2149. + rm -fr conftest*
  2150. + fi
  2151. + echo "$ac_t""$kb_cv_func_putenv_malloc" 1>&4
  2152. + if test $kb_cv_func_putenv_malloc = yes; then
  2153. +   cat >> confdefs.h <<\EOF
  2154. + #define SMART_PUTENV 1
  2155. + EOF
  2156.   
  2157. + fi
  2158.   
  2159.   
  2160. ! for ac_prog in 'bison -y' byacc
  2161.   do
  2162. ! # Extract the first word of "$ac_prog", so it can be a program name with args.
  2163. ! set dummy $ac_prog; ac_word=$2
  2164. ! echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  2165. ! if eval "test \"`echo '${'ac_cv_prog_YACC'+set}'`\" = set"; then
  2166. !   echo $ac_n "(cached) $ac_c" 1>&4
  2167. ! else
  2168. !   if test -n "$YACC"; then
  2169. !   ac_cv_prog_YACC="$YACC" # Let the user override the test.
  2170. ! else
  2171. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2172. !   for ac_dir in $PATH; do
  2173. !     test -z "$ac_dir" && ac_dir=.
  2174. !     if test -f $ac_dir/$ac_word; then
  2175. !       ac_cv_prog_YACC="$ac_prog"
  2176.         break
  2177.       fi
  2178.     done
  2179. !   IFS="$ac_save_ifs"
  2180. ! fi
  2181. ! fi
  2182. ! YACC="$ac_cv_prog_YACC"
  2183. ! if test -n "$YACC"; then
  2184. !   echo "$ac_t""$YACC" 1>&4
  2185. ! else
  2186. !   echo "$ac_t""no" 1>&4
  2187.   fi
  2188.   
  2189.   test -n "$YACC" && break
  2190. ***************
  2191. *** 649,713 ****
  2192.   test -n "$YACC" || YACC="yacc"
  2193.   
  2194. ! if test -z "$LEX"; then
  2195. !   # Extract the first word of `flex', so it can be a program name with args.
  2196. !   set dummy flex; word=$2
  2197. !   echo checking for $word
  2198. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  2199. !   for dir in $PATH; do
  2200. !     test -z "$dir" && dir=.
  2201. !     if test -f $dir/$word; then
  2202. !       LEX="flex"
  2203.         break
  2204.       fi
  2205.     done
  2206. !   IFS="$saveifs"
  2207.   fi
  2208. - test -z "$LEX" && LEX="lex"
  2209. - test -n "$LEX" && test -n "$verbose" && echo "    setting LEX to $LEX"
  2210.   
  2211.   if test -z "$LEXLIB"
  2212.   then
  2213.     case "$LEX" in
  2214. !   flex*) LIBS_save="${LIBS}"
  2215. ! LIBS="${LIBS} -lfl"
  2216. ! have_lib=""
  2217. ! echo checking for -lfl
  2218. ! cat > conftest.c <<EOF
  2219.   #include "confdefs.h"
  2220.   
  2221. ! int main() { exit(0); }
  2222. ! int t() { main(); }
  2223.   EOF
  2224. ! if eval $compile; then
  2225.     rm -rf conftest*
  2226. !   have_lib="1"
  2227.   fi
  2228.   rm -f conftest*
  2229. ! LIBS="${LIBS_save}"
  2230. ! if test -n "${have_lib}"; then
  2231. !    :; LEXLIB="-lfl"
  2232.   else
  2233. !    :; 
  2234.   fi
  2235. !  ;;
  2236. !   *) LEXLIB="-ll" ;;
  2237. !   esac
  2238.   fi
  2239.   
  2240. ! echo checking for ln -s
  2241. ! rm -f conftestdata
  2242.   if ln -s X conftestdata 2>/dev/null
  2243.   then
  2244.     rm -f conftestdata
  2245. !   LN_S="ln -s"
  2246.   else
  2247. !   LN_S=ln
  2248.   fi
  2249.   
  2250.   
  2251. ! echo checking for return type of signal handlers
  2252. ! cat > conftest.c <<EOF
  2253.   #include "confdefs.h"
  2254.   #include <sys/types.h>
  2255. --- 1268,1367 ----
  2256.   test -n "$YACC" || YACC="yacc"
  2257.   
  2258. ! # Extract the first word of "flex", so it can be a program name with args.
  2259. ! set dummy flex; ac_word=$2
  2260. ! echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  2261. ! if eval "test \"`echo '${'ac_cv_prog_LEX'+set}'`\" = set"; then
  2262. !   echo $ac_n "(cached) $ac_c" 1>&4
  2263. ! else
  2264. !   if test -n "$LEX"; then
  2265. !   ac_cv_prog_LEX="$LEX" # Let the user override the test.
  2266. ! else
  2267. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2268. !   for ac_dir in $PATH; do
  2269. !     test -z "$ac_dir" && ac_dir=.
  2270. !     if test -f $ac_dir/$ac_word; then
  2271. !       ac_cv_prog_LEX="flex"
  2272.         break
  2273.       fi
  2274.     done
  2275. !   IFS="$ac_save_ifs"
  2276. !   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  2277. ! fi
  2278. ! fi
  2279. ! LEX="$ac_cv_prog_LEX"
  2280. ! if test -n "$LEX"; then
  2281. !   echo "$ac_t""$LEX" 1>&4
  2282. ! else
  2283. !   echo "$ac_t""no" 1>&4
  2284.   fi
  2285.   
  2286.   if test -z "$LEXLIB"
  2287.   then
  2288.     case "$LEX" in
  2289. !   flex*) ac_lib=fl ;;
  2290. !   *) ac_lib=l ;;
  2291. !   esac
  2292. !   echo $ac_n "checking for -l$ac_lib""... $ac_c" 1>&4
  2293. ! if eval "test \"`echo '${'ac_cv_lib_$ac_lib'+set}'`\" = set"; then
  2294. !   echo $ac_n "(cached) $ac_c" 1>&4
  2295. ! else
  2296. !   ac_save_LIBS="$LIBS"
  2297. ! LIBS="$LIBS -l$ac_lib "
  2298. ! cat > conftest.$ac_ext <<EOF
  2299. ! #line 1312 "configure"
  2300.   #include "confdefs.h"
  2301.   
  2302. ! int main() { return 0; }
  2303. ! int t() {
  2304. ! main()
  2305. ! ; return 0; }
  2306.   EOF
  2307. ! if eval $ac_link; then
  2308.     rm -rf conftest*
  2309. !   eval "ac_cv_lib_$ac_lib=yes"
  2310. ! else
  2311. !   rm -rf conftest*
  2312. !   eval "ac_cv_lib_$ac_lib=no"
  2313.   fi
  2314.   rm -f conftest*
  2315. ! LIBS="$ac_save_LIBS"
  2316. ! fi
  2317. ! if eval "test \"`echo '$ac_cv_lib_'$ac_lib`\" = yes"; then
  2318. !   echo "$ac_t""yes" 1>&4
  2319. !   LEXLIB="-l$ac_lib"
  2320.   else
  2321. !   echo "$ac_t""no" 1>&4
  2322.   fi
  2323.   fi
  2324.   
  2325. ! echo $ac_n "checking whether ln -s works""... $ac_c" 1>&4
  2326. ! if eval "test \"`echo '${'ac_cv_prog_LN_S'+set}'`\" = set"; then
  2327. !   echo $ac_n "(cached) $ac_c" 1>&4
  2328. ! else
  2329. !   rm -f conftestdata
  2330.   if ln -s X conftestdata 2>/dev/null
  2331.   then
  2332.     rm -f conftestdata
  2333. !   ac_cv_prog_LN_S="ln -s"
  2334.   else
  2335. !   ac_cv_prog_LN_S=ln
  2336. ! fi
  2337. ! fi
  2338. ! LN_S="$ac_cv_prog_LN_S"
  2339. ! if test "$ac_cv_prog_LN_S" = "ln -s"; then
  2340. !   echo "$ac_t""yes" 1>&4
  2341. ! else
  2342. !   echo "$ac_t""no" 1>&4
  2343.   fi
  2344.   
  2345.   
  2346. ! echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&4
  2347. ! if eval "test \"`echo '${'ac_cv_type_signal'+set}'`\" = set"; then
  2348. !   echo $ac_n "(cached) $ac_c" 1>&4
  2349. ! else
  2350. !   cat > conftest.$ac_ext <<EOF
  2351. ! #line 1366 "configure"
  2352.   #include "confdefs.h"
  2353.   #include <sys/types.h>
  2354. ***************
  2355. *** 716,815 ****
  2356.   #undef signal
  2357.   #endif
  2358. ! extern void (*signal ()) ();
  2359. ! int main() { exit(0); }
  2360. ! int t() { int i; }
  2361.   EOF
  2362. ! if eval $compile; then
  2363.     rm -rf conftest*
  2364. !   
  2365. ! {
  2366. ! test -n "$verbose" && \
  2367. ! echo "    defining" RETSIGTYPE to be void
  2368. ! echo "#define" RETSIGTYPE void >> confdefs.h
  2369. ! DEFS="$DEFS -DRETSIGTYPE=void"
  2370. ! SEDDEFS="${SEDDEFS}\${SEDdA}RETSIGTYPE\${SEDdB}RETSIGTYPE\${SEDdC}void\${SEDdD}
  2371. ! \${SEDuA}RETSIGTYPE\${SEDuB}RETSIGTYPE\${SEDuC}void\${SEDuD}
  2372. ! \${SEDeA}RETSIGTYPE\${SEDeB}RETSIGTYPE\${SEDeC}void\${SEDeD}
  2373. ! "
  2374. ! }
  2375.   else
  2376.     rm -rf conftest*
  2377. !   
  2378. ! {
  2379. ! test -n "$verbose" && \
  2380. ! echo "    defining" RETSIGTYPE to be int
  2381. ! echo "#define" RETSIGTYPE int >> confdefs.h
  2382. ! DEFS="$DEFS -DRETSIGTYPE=int"
  2383. ! SEDDEFS="${SEDDEFS}\${SEDdA}RETSIGTYPE\${SEDdB}RETSIGTYPE\${SEDdC}int\${SEDdD}
  2384. ! \${SEDuA}RETSIGTYPE\${SEDuB}RETSIGTYPE\${SEDuC}int\${SEDuD}
  2385. ! \${SEDeA}RETSIGTYPE\${SEDeB}RETSIGTYPE\${SEDeC}int\${SEDeD}
  2386. ! "
  2387. ! }
  2388.   fi
  2389.   rm -f conftest*
  2390.   
  2391. ! echo checking for unsigned characters
  2392. ! cat > conftest.c <<EOF
  2393.   #include "confdefs.h"
  2394.   /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  2395. ! #if !__STDC__
  2396.   #define volatile
  2397.   #endif
  2398.   main() {
  2399. - #ifdef __CHAR_UNSIGNED__
  2400. -   exit(1); /* No need to redefine it.  */
  2401. - #else
  2402.     volatile char c = 255; exit(c < 0);
  2403. - #endif
  2404.   }
  2405.   EOF
  2406. ! eval $compile
  2407.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2408. !   
  2409. ! {
  2410. ! test -n "$verbose" && \
  2411. ! echo "    defining __CHAR_UNSIGNED__"
  2412. ! echo "#define" __CHAR_UNSIGNED__ 1 >> confdefs.h
  2413. ! DEFS="$DEFS -D__CHAR_UNSIGNED__=1"
  2414. ! SEDDEFS="${SEDDEFS}\${SEDdA}__CHAR_UNSIGNED__\${SEDdB}__CHAR_UNSIGNED__\${SEDdC}1\${SEDdD}
  2415. ! \${SEDuA}__CHAR_UNSIGNED__\${SEDuB}__CHAR_UNSIGNED__\${SEDuC}1\${SEDuD}
  2416. ! \${SEDeA}__CHAR_UNSIGNED__\${SEDeB}__CHAR_UNSIGNED__\${SEDeC}1\${SEDeD}
  2417. ! "
  2418. ! }
  2419.   fi
  2420.   rm -fr conftest*
  2421.   
  2422. ! echo checking for 64-bit long ints
  2423. ! cat > conftest.c <<EOF
  2424.   #include "confdefs.h"
  2425.   main() { exit(sizeof(long int) != 8); }
  2426.   EOF
  2427. ! eval $compile
  2428.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2429. !   
  2430. ! {
  2431. ! test -n "$verbose" && \
  2432. ! echo "    defining LONG_64_BITS"
  2433. ! echo "#define" LONG_64_BITS 1 >> confdefs.h
  2434. ! DEFS="$DEFS -DLONG_64_BITS=1"
  2435. ! SEDDEFS="${SEDDEFS}\${SEDdA}LONG_64_BITS\${SEDdB}LONG_64_BITS\${SEDdC}1\${SEDdD}
  2436. ! \${SEDuA}LONG_64_BITS\${SEDuB}LONG_64_BITS\${SEDuC}1\${SEDuD}
  2437. ! \${SEDeA}LONG_64_BITS\${SEDeB}LONG_64_BITS\${SEDeC}1\${SEDeD}
  2438. ! "
  2439. ! }
  2440.   
  2441.   fi
  2442.   rm -fr conftest*
  2443.   
  2444. ! echo checking byte ordering
  2445. ! cat > conftest.c <<EOF
  2446.   #include "confdefs.h"
  2447.   main () {
  2448. --- 1370,1484 ----
  2449.   #undef signal
  2450.   #endif
  2451. ! extern void (*signal ()) ();
  2452. ! int main() { return 0; }
  2453. ! int t() {
  2454. ! int i;
  2455. ! ; return 0; }
  2456. ! EOF
  2457. ! if eval $ac_compile; then
  2458. !   rm -rf conftest*
  2459. !   ac_cv_type_signal=void
  2460. ! else
  2461. !   rm -rf conftest*
  2462. !   ac_cv_type_signal=int
  2463. ! fi
  2464. ! rm -f conftest*
  2465. ! fi
  2466. ! echo "$ac_t""$ac_cv_type_signal" 1>&4
  2467. ! cat >> confdefs.h <<EOF
  2468. ! #define RETSIGTYPE $ac_cv_type_signal
  2469. ! EOF
  2470. ! echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&4
  2471. ! if eval "test \"`echo '${'ac_cv_c_char_unsigned'+set}'`\" = set"; then
  2472. !   echo $ac_n "(cached) $ac_c" 1>&4
  2473. ! else
  2474. !   if test "$GCC" = yes; then
  2475. !   # GCC predefines this symbol on systems where it applies.
  2476. ! cat > conftest.$ac_ext <<EOF
  2477. ! #line 1403 "configure"
  2478. ! #include "confdefs.h"
  2479. ! #ifdef __CHAR_UNSIGNED__
  2480. !   yes
  2481. ! #endif
  2482.   EOF
  2483. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2484. !   egrep "yes" >/dev/null 2>&1; then
  2485.     rm -rf conftest*
  2486. !   ac_cv_c_char_unsigned=yes
  2487.   else
  2488.     rm -rf conftest*
  2489. !   ac_cv_c_char_unsigned=no
  2490.   fi
  2491.   rm -f conftest*
  2492.   
  2493. ! else
  2494. ! if test "$cross_compiling" = yes; then
  2495. !     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2496. ! else
  2497. ! cat > conftest.$ac_ext <<EOF
  2498. ! #line 1425 "configure"
  2499.   #include "confdefs.h"
  2500.   /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  2501. ! #if !defined(__STDC__) || __STDC__ != 1
  2502.   #define volatile
  2503.   #endif
  2504.   main() {
  2505.     volatile char c = 255; exit(c < 0);
  2506.   }
  2507.   EOF
  2508. ! eval $ac_link
  2509.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2510. !   ac_cv_c_char_unsigned=yes
  2511. ! else
  2512. !   ac_cv_c_char_unsigned=no
  2513. ! fi
  2514.   fi
  2515.   rm -fr conftest*
  2516. + fi
  2517. + fi
  2518. + echo "$ac_t""$ac_cv_c_char_unsigned" 1>&4
  2519. + if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  2520. +   cat >> confdefs.h <<\EOF
  2521. + #define __CHAR_UNSIGNED__ 1
  2522. + EOF
  2523. + fi
  2524.   
  2525. ! echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&4
  2526. ! if test "$cross_compiling" = yes; then
  2527. !     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2528. ! else
  2529. ! cat > conftest.$ac_ext <<EOF
  2530. ! #line 1458 "configure"
  2531.   #include "confdefs.h"
  2532.   main() { exit(sizeof(long int) != 8); }
  2533.   EOF
  2534. ! eval $ac_link
  2535.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2536. !   echo "$ac_t""yes" 1>&4
  2537. !  cat >> confdefs.h <<\EOF
  2538. ! #define LONG_64_BITS 1
  2539. ! EOF
  2540.   
  2541. + else
  2542. +   echo "$ac_t""no" 1>&4
  2543. + fi
  2544.   fi
  2545.   rm -fr conftest*
  2546.   
  2547. ! echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&4
  2548. ! if eval "test \"`echo '${'ac_cv_c_bigendian'+set}'`\" = set"; then
  2549. !   echo $ac_n "(cached) $ac_c" 1>&4
  2550. ! else
  2551. !   if test "$cross_compiling" = yes; then
  2552. !     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2553. ! else
  2554. ! cat > conftest.$ac_ext <<EOF
  2555. ! #line 1483 "configure"
  2556.   #include "confdefs.h"
  2557.   main () {
  2558. ***************
  2559. *** 824,974 ****
  2560.   }
  2561.   EOF
  2562. ! eval $compile
  2563.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2564. !   :
  2565.   else
  2566. !   
  2567. ! {
  2568. ! test -n "$verbose" && \
  2569. ! echo "    defining WORDS_BIGENDIAN"
  2570. ! echo "#define" WORDS_BIGENDIAN 1 >> confdefs.h
  2571. ! DEFS="$DEFS -DWORDS_BIGENDIAN=1"
  2572. ! SEDDEFS="${SEDDEFS}\${SEDdA}WORDS_BIGENDIAN\${SEDdB}WORDS_BIGENDIAN\${SEDdC}1\${SEDdD}
  2573. ! \${SEDuA}WORDS_BIGENDIAN\${SEDuB}WORDS_BIGENDIAN\${SEDuC}1\${SEDuD}
  2574. ! \${SEDeA}WORDS_BIGENDIAN\${SEDeB}WORDS_BIGENDIAN\${SEDeC}1\${SEDeD}
  2575. ! "
  2576. ! }
  2577.   fi
  2578.   rm -fr conftest*
  2579.   
  2580.   
  2581. ! echo checking how to declare yytext
  2582. ! # Figure out what yytext is by creating a minimal parser and
  2583. ! # examining the (preprocessed, in case macros are used) output.
  2584. ! if test "z${DECLARE_YYTEXT}" = "z"; then
  2585.     echo '%%
  2586. ! %%' | ${LEX}
  2587. !   if test -f lex.yy.c; then
  2588. !     LEX_OUTPUT_ROOT=lex.yy
  2589. !   elif test -f lexyy.c; then
  2590. !     LEX_OUTPUT_ROOT=lexyy
  2591. !   else
  2592. !     # Don't know what to do here.
  2593. !     echo "Can't find output from $LEX; assuming lex.yy.c." 1>&2
  2594. !     LEX_OUTPUT_ROOT=lex.yy
  2595. !   fi
  2596. !   DECLARE_YYTEXT=`eval ${CPP} "${LEX_OUTPUT_ROOT}.c" |
  2597. !     sed -n '/extern.*yytext[^a-zA-Z0-9_]/s/^.*extern/extern/p'`
  2598. !   rm -f "${LEX_OUTPUT_ROOT}.c"
  2599.   fi
  2600.   
  2601. - {
  2602. - test -n "$verbose" && \
  2603. - echo "    defining" DECLARE_YYTEXT to be $DECLARE_YYTEXT
  2604. - echo "#define" DECLARE_YYTEXT $DECLARE_YYTEXT >> confdefs.h
  2605. - DEFS="$DEFS -DDECLARE_YYTEXT=$DECLARE_YYTEXT"
  2606. - SEDDEFS="${SEDDEFS}\${SEDdA}DECLARE_YYTEXT\${SEDdB}DECLARE_YYTEXT\${SEDdC}$DECLARE_YYTEXT\${SEDdD}
  2607. - \${SEDuA}DECLARE_YYTEXT\${SEDuB}DECLARE_YYTEXT\${SEDuC}$DECLARE_YYTEXT\${SEDuD}
  2608. - \${SEDeA}DECLARE_YYTEXT\${SEDeB}DECLARE_YYTEXT\${SEDeC}$DECLARE_YYTEXT\${SEDeD}
  2609. - "
  2610. - }
  2611.   
  2612.   
  2613. ! echo checking for window system libraries
  2614. ! cat > conftest.c <<EOF
  2615.   #include "confdefs.h"
  2616.   #include "$srcdir/lib/c-auto.h.in"
  2617. ! #ifndef SUNWIN
  2618. ! #include <nonexistxyz.kkk>
  2619.   #endif
  2620.   
  2621.   EOF
  2622. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2623. ! if test -z "$err"; then
  2624.     rm -rf conftest*
  2625. !   SUNWIN=t
  2626.   fi
  2627.   rm -f conftest*
  2628. ! cat > conftest.c <<EOF
  2629.   #include "confdefs.h"
  2630.   #include "$srcdir/lib/c-auto.h.in"
  2631. ! #ifndef XVIEWWIN
  2632. ! #include <nonexistxyz.kkk>
  2633.   #endif
  2634.   
  2635.   EOF
  2636. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2637. ! if test -z "$err"; then
  2638.     rm -rf conftest*
  2639. !   XVIEWWIN=t
  2640.   fi
  2641.   rm -f conftest*
  2642. ! cat > conftest.c <<EOF
  2643.   #include "confdefs.h"
  2644.   #include "$srcdir/lib/c-auto.h.in"
  2645. ! #ifndef X11WIN
  2646. ! #include <nonexistxyz.kkk>
  2647.   #endif
  2648.   
  2649.   EOF
  2650. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2651. ! if test -z "$err"; then
  2652.     rm -rf conftest*
  2653. !   X11WIN=t
  2654.   fi
  2655.   rm -f conftest*
  2656. ! cat > conftest.c <<EOF
  2657.   #include "confdefs.h"
  2658.   #include "$srcdir/lib/c-auto.h.in"
  2659. ! #ifndef X10WIN
  2660. ! #include <nonexistxyz.kkk>
  2661.   #endif
  2662.   
  2663.   EOF
  2664. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2665. ! if test -z "$err"; then
  2666.     rm -rf conftest*
  2667. !   X10WIN=t
  2668.   fi
  2669.   rm -f conftest*
  2670. ! if test -n "$XVIEWWIN"; then
  2671.     wlibs="-lxview -lolgx -lX11 $wlibs"
  2672.     (cd $srcdir/mf/MFwindow; rm -f sun.c; $LN_S sun-xview.c sun.c)
  2673.   fi
  2674. ! if test -n "$X11WIN"; then
  2675. !   # If we find X, set shell vars x_includes and x_libraries to the paths.
  2676. ! no_x=true
  2677. ! echo checking for X include and library files with xmkmf
  2678.   rm -fr conftestdir
  2679.   if mkdir conftestdir; then
  2680.     cd conftestdir
  2681. !   cat > Imakefile <<\EOF
  2682.   acfindx:
  2683. !     @echo "im_incroot=$(INCROOT); im_usrlibdir=$(USRLIBDIR); im_libdir=$(LIBDIR)"
  2684.   EOF
  2685.     if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  2686.       no_x=
  2687.       # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2688. !     eval `make acfindx | grep -v make`
  2689.       # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  2690. !     if test ! -f $im_usrlibdir/libX11.a && test -f $im_libdir/libX11.a; then
  2691. !       im_usrlibdir=$im_libdir
  2692.       fi
  2693. !     case "$im_incroot" in
  2694.       /usr/include) ;;
  2695. !     *) x_includes="$im_incroot" ;;
  2696.       esac
  2697. !     case "$im_usrlibdir" in
  2698.       /usr/lib | /lib) ;;
  2699. !     *) x_libraries="$im_usrlibdir" ;;
  2700.       esac
  2701.     fi
  2702. --- 1493,1706 ----
  2703.   }
  2704.   EOF
  2705. ! eval $ac_link
  2706.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2707. !   ac_cv_c_bigendian=no
  2708.   else
  2709. !   ac_cv_c_bigendian=yes
  2710. ! fi
  2711.   fi
  2712.   rm -fr conftest*
  2713. + fi
  2714. + echo "$ac_t""$ac_cv_c_bigendian" 1>&4
  2715. + if test $ac_cv_c_bigendian = yes; then
  2716. +   cat >> confdefs.h <<\EOF
  2717. + #define WORDS_BIGENDIAN 1
  2718. + EOF
  2719. + fi
  2720.   
  2721.   
  2722. ! echo $ac_n "checking for yytext declaration""... $ac_c" 1>&4
  2723. ! if eval "test \"`echo '${'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
  2724. !   echo $ac_n "(cached) $ac_c" 1>&4
  2725. ! else
  2726. !   # POSIX says lex can declare yytext either as a pointer or an array; the
  2727. ! # default is implementation-dependent. Figure out which it is, since
  2728. ! # not all implementations provide the %pointer and %array declarations.
  2729. ! #
  2730. ! # The minimal lex program is just a single line: %%.  But some broken lexes
  2731. ! # (Solaris, I think it was) want two %% lines, so accommodate them.
  2732. ! ac_cv_prog_lex_yytext_pointer=no
  2733.     echo '%%
  2734. ! %%' | $LEX
  2735. ! if test -f lex.yy.c; then
  2736. !   LEX_OUTPUT_ROOT=lex.yy
  2737. ! elif test -f lexyy.c; then
  2738. !   LEX_OUTPUT_ROOT=lexyy
  2739. ! else
  2740. !   { echo "configure: error: cannot find output from $LEX, giving up" 1>&2; exit 1; }
  2741.   fi
  2742. + echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
  2743. + ac_save_LIBS="$LIBS"
  2744. + LIBS="$LIBS $LEXLIB"
  2745. + cat > conftest.$ac_ext <<EOF
  2746. + #line 1538 "configure"
  2747. + #include "confdefs.h"
  2748. + `cat $LEX_OUTPUT_ROOT.c`
  2749. + int main() { return 0; }
  2750. + int t() {
  2751. + ; return 0; }
  2752. + EOF
  2753. + if eval $ac_link; then
  2754. +   rm -rf conftest*
  2755. +   ac_cv_prog_lex_yytext_pointer=yes
  2756. + fi
  2757. + rm -f conftest*
  2758. + LIBS="$ac_save_LIBS"
  2759. + rm -f "${LEX_OUTPUT_ROOT}.c"
  2760. + fi
  2761. + echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&4
  2762. + if test $ac_cv_prog_lex_yytext_pointer = yes; then
  2763. +   cat >> confdefs.h <<\EOF
  2764. + #define YYTEXT_POINTER 1
  2765. + EOF
  2766. + fi
  2767.   
  2768.   
  2769.   
  2770. ! echo $ac_n "checking for sunwindow libraries""... $ac_c" 1>&4
  2771. ! cat > conftest.$ac_ext <<EOF
  2772. ! #line 1568 "configure"
  2773.   #include "confdefs.h"
  2774.   #include "$srcdir/lib/c-auto.h.in"
  2775. ! #ifdef SUNWIN
  2776. !   yes
  2777.   #endif
  2778.   
  2779.   EOF
  2780. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2781. !   egrep "yes" >/dev/null 2>&1; then
  2782.     rm -rf conftest*
  2783. !   SUNWIN=yes
  2784. ! else
  2785. !   rm -rf conftest*
  2786. !   SUNWIN=no
  2787.   fi
  2788.   rm -f conftest*
  2789. ! echo "$ac_t""$SUNWIN" 1>&4
  2790. ! echo $ac_n "checking for xview libraries""... $ac_c" 1>&4
  2791. ! cat > conftest.$ac_ext <<EOF
  2792. ! #line 1590 "configure"
  2793.   #include "confdefs.h"
  2794.   #include "$srcdir/lib/c-auto.h.in"
  2795. ! #ifdef XVIEWWIN
  2796. !   yes
  2797.   #endif
  2798.   
  2799.   EOF
  2800. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2801. !   egrep "yes" >/dev/null 2>&1; then
  2802.     rm -rf conftest*
  2803. !   XVIEWWIN=yes
  2804. ! else
  2805. !   rm -rf conftest*
  2806. !   XVIEWWIN=no
  2807.   fi
  2808.   rm -f conftest*
  2809. ! echo "$ac_t""$XVIEWWIN" 1>&4
  2810. ! echo $ac_n "checking for X11 libraries""... $ac_c" 1>&4
  2811. ! cat > conftest.$ac_ext <<EOF
  2812. ! #line 1612 "configure"
  2813.   #include "confdefs.h"
  2814.   #include "$srcdir/lib/c-auto.h.in"
  2815. ! #ifdef X11WIN
  2816. !   yes
  2817.   #endif
  2818.   
  2819.   EOF
  2820. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2821. !   egrep "yes" >/dev/null 2>&1; then
  2822.     rm -rf conftest*
  2823. !   X11WIN=yes
  2824. ! else
  2825. !   rm -rf conftest*
  2826. !   X11WIN=no
  2827.   fi
  2828.   rm -f conftest*
  2829. ! echo "$ac_t""$X11WIN" 1>&4
  2830. ! echo $ac_n "checking for X10 libraries""... $ac_c" 1>&4
  2831. ! cat > conftest.$ac_ext <<EOF
  2832. ! #line 1634 "configure"
  2833.   #include "confdefs.h"
  2834.   #include "$srcdir/lib/c-auto.h.in"
  2835. ! #ifdef X10WIN
  2836. !   yes
  2837.   #endif
  2838.   
  2839.   EOF
  2840. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2841. !   egrep "yes" >/dev/null 2>&1; then
  2842.     rm -rf conftest*
  2843. !   X10WIN=yes
  2844. ! else
  2845. !   rm -rf conftest*
  2846. !   X10WIN=no
  2847.   fi
  2848.   rm -f conftest*
  2849. ! echo "$ac_t""$X10WIN" 1>&4
  2850. ! if test $XVIEWWIN = yes; then
  2851.     wlibs="-lxview -lolgx -lX11 $wlibs"
  2852.     (cd $srcdir/mf/MFwindow; rm -f sun.c; $LN_S sun-xview.c sun.c)
  2853.   fi
  2854. ! if test $X11WIN = yes; then
  2855. !   # If we find X, set shell vars x_includes and x_libraries to the
  2856. ! # paths, otherwise set no_x=yes.
  2857. ! # Uses ac_ vars as temps to allow command line to override cache and checks.
  2858. ! # --without-x overrides everything else, but does not touch the cache.
  2859. ! echo $ac_n "checking for X""... $ac_c" 1>&4
  2860. ! # Check whether --with-x or --without-x was given.
  2861. ! withval="$with_x"
  2862. ! if test -n "$withval"; then
  2863. !   :
  2864. ! fi
  2865. ! if test "x$with_x" = xno; then
  2866. !   no_x=yes
  2867. ! else
  2868. !   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  2869. !     no_x=
  2870. !   else
  2871. ! if eval "test \"`echo '${'ac_cv_path_x'+set}'`\" = set"; then
  2872. !   echo $ac_n "(cached) $ac_c" 1>&4
  2873. ! else
  2874. !   # One or both of the vars are not set, and there is no cached value.
  2875. ! no_x=yes
  2876.   rm -fr conftestdir
  2877.   if mkdir conftestdir; then
  2878.     cd conftestdir
  2879. !   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  2880. !   cat > Imakefile <<'EOF'
  2881.   acfindx:
  2882. !     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  2883.   EOF
  2884.     if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  2885.       no_x=
  2886.       # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2887. !     eval `make acfindx 2>/dev/null | grep -v make`
  2888.       # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  2889. !     if test ! -f $ac_im_usrlibdir/libX11.a && test -f $ac_im_libdir/libX11.a
  2890. !     then
  2891. !       ac_im_usrlibdir=$ac_im_libdir
  2892.       fi
  2893. !     case "$ac_im_incroot" in
  2894.       /usr/include) ;;
  2895. !     *) ac_x_includes="$ac_im_incroot" ;;
  2896.       esac
  2897. !     case "$ac_im_usrlibdir" in
  2898.       /usr/lib | /lib) ;;
  2899. !     *) ac_x_libraries="$ac_im_usrlibdir" ;;
  2900.       esac
  2901.     fi
  2902. ***************
  2903. *** 977,1009 ****
  2904.   fi
  2905.   
  2906. ! if test -z "$im_usrlibdir"; then
  2907. ! echo checking for X include and library files directly
  2908. ! cat > conftest.c <<EOF
  2909. ! #include "confdefs.h"
  2910. ! #include <X11/Intrinsic.h>
  2911. ! EOF
  2912. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2913. ! if test -z "$err"; then
  2914.     rm -rf conftest*
  2915. !   no_x=
  2916.   else
  2917.     rm -rf conftest*
  2918. !   for dir in \
  2919. !     /usr/local/include \
  2920. !     /usr/unsupported/include \
  2921. !     /usr/x386/include \
  2922. !     /usr/local/x11r5/include \
  2923. !     /usr/include/X11R5 \
  2924. !     /usr/include/X11R4 \
  2925. !     /usr/X11R5/include \
  2926. !     /usr/X11/include \
  2927. !     /usr/openwin/include \
  2928.       /usr/openwin/share/include \
  2929. -     /usr/lpp/Xamples/include \
  2930.       ; \
  2931.     do
  2932. !     if test -r $dir/X11/Intrinsic.h; then
  2933. !       x_includes=$dir; no_x=
  2934.         break
  2935.       fi
  2936. --- 1709,1768 ----
  2937.   fi
  2938.   
  2939. ! if test "$no_x" = yes; then
  2940. ! test -z "$x_direct_test_library" && x_direct_test_library=Xt
  2941. ! test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  2942. ! test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  2943. ! cat > conftest.$ac_ext <<EOF
  2944. ! #line 1717 "configure"
  2945. ! #include "confdefs.h"
  2946. ! #include <$x_direct_test_include>
  2947. ! EOF
  2948. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2949. ! ac_err=`grep -v '^ *+' conftest.out`
  2950. ! if test -z "$ac_err"; then
  2951.     rm -rf conftest*
  2952. !   no_x= ac_x_includes=
  2953.   else
  2954. +   echo "$ac_err" >&5
  2955.     rm -rf conftest*
  2956. !     for ac_dir in               \
  2957. !     /usr/X11R6/include        \
  2958. !     /usr/X11R5/include        \
  2959. !     /usr/X11R4/include        \
  2960. !                               \
  2961. !     /usr/include/X11R6        \
  2962. !     /usr/include/X11R5        \
  2963. !     /usr/include/X11R4        \
  2964. !                               \
  2965. !     /usr/local/X11R6/include  \
  2966. !     /usr/local/X11R5/include  \
  2967. !     /usr/local/X11R4/include  \
  2968. !                               \
  2969. !     /usr/local/include/X11R6  \
  2970. !     /usr/local/include/X11R5  \
  2971. !     /usr/local/include/X11R4  \
  2972. !                               \
  2973. !     /usr/X11/include          \
  2974. !     /usr/include/X11          \
  2975. !     /usr/local/X11/include    \
  2976. !     /usr/local/include/X11    \
  2977. !                               \
  2978. !     /usr/X386/include         \
  2979. !     /usr/x386/include         \
  2980. !     /usr/XFree86/include/X11  \
  2981. !                               \
  2982. !     /usr/include              \
  2983. !     /usr/local/include        \
  2984. !     /usr/unsupported/include  \
  2985. !     /usr/athena/include       \
  2986. !     /usr/local/x11r5/include  \
  2987. !     /usr/lpp/Xamples/include  \
  2988. !                               \
  2989. !     /usr/openwin/include      \
  2990.       /usr/openwin/share/include \
  2991.       ; \
  2992.     do
  2993. !     if test -r "$ac_dir/$x_direct_test_include"; then
  2994. !       no_x= ac_x_includes=$ac_dir
  2995.         break
  2996.       fi
  2997. ***************
  2998. *** 1012,1053 ****
  2999.   rm -f conftest*
  3000.   
  3001. ! # Check for the libraries.  First see if replacing the `include' by
  3002. ! # `lib' works.
  3003. ! LIBS_save="${LIBS}"
  3004. ! LIBS="${LIBS} -lXt"
  3005. ! have_lib=""
  3006. ! echo checking for -lXt
  3007. ! cat > conftest.c <<EOF
  3008. ! #include "confdefs.h"
  3009. ! int main() { exit(0); }
  3010. ! int t() { main(); }
  3011. ! EOF
  3012. ! if eval $compile; then
  3013. !   rm -rf conftest*
  3014. !   have_lib="1"
  3015. ! fi
  3016. ! rm -f conftest*
  3017. ! LIBS="${LIBS_save}"
  3018. ! if test -n "${have_lib}"; then
  3019. !    :; no_x=
  3020. ! else
  3021. !    :; for dir in `echo "$x_includes" | sed s/include/lib/` \
  3022. !   /usr/local/lib \
  3023. !   /usr/unsupported/lib \
  3024. !   /usr/x386/lib \
  3025. !   /usr/local/x11r5/lib \
  3026. !   /usr/lib/X11 \
  3027. !   /usr/lib/X11R4 \
  3028. !   /usr/X11R5/lib \
  3029. !   /usr/X11/lib \
  3030. !   /usr/openwin/lib \
  3031. !   /usr/lpp/Xamples/lib \
  3032. !   ; \
  3033.   do
  3034. !   for extension in a so sl; do
  3035. !     if test -r $dir/libXt.$extension; then
  3036. !       x_libraries=$dir; no_x=
  3037.         break 2
  3038.       fi
  3039. --- 1771,1835 ----
  3040.   rm -f conftest*
  3041.   
  3042. ! # Check for the libraries.
  3043. ! # See if we find them without any special options.
  3044. ! # Don't add to $LIBS permanently.
  3045. ! ac_save_LIBS="$LIBS"
  3046. ! LIBS="$LIBS -l$x_direct_test_library"
  3047. ! cat > conftest.$ac_ext <<EOF
  3048. ! #line 1780 "configure"
  3049. ! #include "confdefs.h"
  3050. ! int main() { return 0; }
  3051. ! int t() {
  3052. ! ${x_direct_test_function}()
  3053. ! ; return 0; }
  3054. ! EOF
  3055. ! if eval $ac_link; then
  3056. !   rm -rf conftest*
  3057. !   LIBS="$ac_save_LIBS" no_x= ac_x_libraries=
  3058. ! else
  3059. !   rm -rf conftest*
  3060. !   LIBS="$ac_save_LIBS"
  3061. ! # First see if replacing the include by lib works.
  3062. ! for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  3063. !     /usr/X11R6/lib        \
  3064. !     /usr/X11R5/lib        \
  3065. !     /usr/X11R4/lib        \
  3066. !                           \
  3067. !     /usr/lib/X11R6        \
  3068. !     /usr/lib/X11R5        \
  3069. !     /usr/lib/X11R4        \
  3070. !                           \
  3071. !     /usr/local/X11R6/lib  \
  3072. !     /usr/local/X11R5/lib  \
  3073. !     /usr/local/X11R4/lib  \
  3074. !                           \
  3075. !     /usr/local/lib/X11R6  \
  3076. !     /usr/local/lib/X11R5  \
  3077. !     /usr/local/lib/X11R4  \
  3078. !                           \
  3079. !     /usr/X11/lib          \
  3080. !     /usr/lib/X11          \
  3081. !     /usr/local/X11/lib    \
  3082. !     /usr/local/lib/X11    \
  3083. !                           \
  3084. !     /usr/X386/lib         \
  3085. !     /usr/x386/lib         \
  3086. !     /usr/XFree86/lib/X11  \
  3087. !                           \
  3088. !     /usr/lib              \
  3089. !     /usr/local/lib        \
  3090. !     /usr/unsupported/lib  \
  3091. !     /usr/athena/lib       \
  3092. !     /usr/local/x11r5/lib  \
  3093. !     /usr/lpp/Xamples/lib  \
  3094. !                           \
  3095. !     /usr/openwin/lib      \
  3096. !     /usr/openwin/share/lib \
  3097. !     ; \
  3098.   do
  3099. !   for ac_extension in a so sl; do
  3100. !     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  3101. !       no_x= ac_x_libraries=$ac_dir
  3102.         break 2
  3103.       fi
  3104. ***************
  3105. *** 1055,1207 ****
  3106.   done
  3107.   fi
  3108.   
  3109.   fi
  3110. ! if test -n "$verbose"; then
  3111. !   test -n "$x_includes" && echo "    found X11 headers in $x_includes"
  3112. !   test -n "$x_libraries" && echo "    found X11 libraries in $x_libraries"
  3113. ! fi
  3114. !   
  3115. ! if test -n "$x_includes"; then
  3116. !   x_include_flags=-I$x_includes
  3117. ! elif test -n "$no_x"; then 
  3118. !   # Not all programs may use this symbol, but it won't hurt to define it.
  3119. !   x_include_flags=-DX_DISPLAY_MISSING
  3120.   fi
  3121. - #
  3122. - # It would be nice to have a more robust check for the -R ld option then
  3123. - # just checking for Solaris.
  3124. - # 
  3125. - # It would also be nice to do this for all -L options, not just this one.
  3126. - if test -n "$x_libraries"; then
  3127. -   x_lib_flags=-L$x_libraries
  3128. -   if test "`uname 2>/dev/null`" = SunOS \
  3129. -      && uname -r | grep '^5' >/dev/null; then
  3130. -     x_lib_flags="$x_lib_flags -R$x_libraries"
  3131.     fi
  3132.   fi
  3133. ! #
  3134. ! # Check for additional X libraries.
  3135. ! # 
  3136. ! # Since we already have an explicit check for POSIXified ISC, assume
  3137. ! # it's been used.
  3138. ! if test -n "$ISC"; then
  3139. !   x_extra_libs="$x_extra_libs -lnsl_s -linet"
  3140. !   test -n "$verbose" && echo "    adding -lnsl_s -linet to x_extra_libs (for ISC)"
  3141.   else
  3142. !   # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  3143. !   # libraries were built with DECnet support.  And karl@cs.umb.edu's Alpha
  3144. !   # needs dnet_stub.
  3145. !   LIBS_save="${LIBS}"
  3146. ! LIBS="${LIBS} -ldnet"
  3147. ! have_lib=""
  3148. ! echo checking for -ldnet
  3149. ! cat > conftest.c <<EOF
  3150.   #include "confdefs.h"
  3151.   
  3152. ! int main() { exit(0); }
  3153. ! int t() { main(); }
  3154.   EOF
  3155. ! if eval $compile; then
  3156.     rm -rf conftest*
  3157. !   have_lib="1"
  3158.   fi
  3159.   rm -f conftest*
  3160. ! LIBS="${LIBS_save}"
  3161. ! if test -n "${have_lib}"; then
  3162. !    :; x_extra_libs="$x_extra_libs -ldnet"
  3163. !      have_dnet=t
  3164. !      test -n "$verbose" && echo "    adding -ldnet to x_extra_libs"
  3165.   else
  3166. !    :; 
  3167.   fi
  3168.   
  3169. !   if test -z "$have_dnet"; then
  3170. !     LIBS_save="${LIBS}"
  3171. ! LIBS="${LIBS} -ldnet_stub"
  3172. ! have_lib=""
  3173. ! echo checking for -ldnet_stub
  3174. ! cat > conftest.c <<EOF
  3175.   #include "confdefs.h"
  3176.   
  3177. ! int main() { exit(0); }
  3178. ! int t() { main(); }
  3179.   EOF
  3180. ! if eval $compile; then
  3181.     rm -rf conftest*
  3182. !   have_lib="1"
  3183.   fi
  3184.   rm -f conftest*
  3185. ! LIBS="${LIBS_save}"
  3186. ! if test -n "${have_lib}"; then
  3187. !    :; x_extra_libs="$x_extra_libs -ldnet_stub"
  3188. !        test -n "$verbose" && echo "    adding -ldnet_stub to x_extra_libs"
  3189.   else
  3190. !    :; 
  3191.   fi
  3192.   
  3193. !   fi
  3194. !   # lieder@skyler.mavd.honeywell.com says without -lsocket,
  3195. !   # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
  3196. !   LIBS_save="${LIBS}"
  3197. ! LIBS="${LIBS} -lsocket"
  3198. ! have_lib=""
  3199. ! echo checking for -lsocket
  3200. ! cat > conftest.c <<EOF
  3201.   #include "confdefs.h"
  3202.   
  3203. ! int main() { exit(0); }
  3204. ! int t() { main(); }
  3205.   EOF
  3206. ! if eval $compile; then
  3207.     rm -rf conftest*
  3208. !   have_lib="1"
  3209.   fi
  3210.   rm -f conftest*
  3211. ! LIBS="${LIBS_save}"
  3212. ! if test -n "${have_lib}"; then
  3213. !    :; x_extra_libs="$x_extra_libs -lsocket"
  3214. !      test -n "$verbose" && echo "    adding -lsocket to x_extra_libs"
  3215.   else
  3216. !    :; 
  3217.   fi
  3218.   
  3219. ! fi
  3220. ! #
  3221.   
  3222. !   if test -z "$Xextlib"; then
  3223. !     LIBS_save="${LIBS}"
  3224. ! LIBS="${LIBS} -lXext"
  3225. ! have_lib=""
  3226. ! echo checking for -lXext
  3227. ! cat > conftest.c <<EOF
  3228.   #include "confdefs.h"
  3229.   
  3230. ! int main() { exit(0); }
  3231. ! int t() { main(); }
  3232.   EOF
  3233. ! if eval $compile; then
  3234.     rm -rf conftest*
  3235. !   have_lib="1"
  3236.   
  3237.   fi
  3238.   rm -f conftest*
  3239. ! LIBS="${LIBS_save}"
  3240. ! if test -n "${have_lib}"; then
  3241. !    :; Xextlib=-lXext
  3242.   else
  3243. !    :; 
  3244.   fi
  3245.   
  3246.     fi
  3247. !   wlibs="-lXt $Xextlib -lX11 $wlibs"
  3248.     (cd $srcdir/mf/MFwindow; rm -f x11.c; $LN_S x11-Xt.c x11.c)
  3249.   fi
  3250. ! if test -n "$X10WIN"; then
  3251.     wlibs="-lX $wlibs"
  3252.   fi
  3253. ! if test -n "$SUNWIN"; then
  3254.     wlibs="-lsuntool -lsunwindow -lpixrect $wlibs"
  3255.     (cd $srcdir/mf/MFwindow; rm -f sun.c; $LN_S sun-sunview.c sun.c)
  3256. --- 1837,2089 ----
  3257.   done
  3258.   fi
  3259. + rm -f conftest*
  3260.   
  3261.   fi
  3262. ! if test "$no_x" = yes; then
  3263. !   ac_cv_path_x="no_x=yes"
  3264. ! else
  3265. !   ac_cv_path_x="no_x= ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  3266. ! fi
  3267.   fi
  3268.     fi
  3269. +   eval "$ac_cv_path_x"
  3270. + fi # $with_x != no
  3271. + if test "$no_x" = yes; then
  3272. +   echo "$ac_t""no" 1>&4
  3273. + else
  3274. +   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  3275. +   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  3276. +   ac_cv_path_x="no_x= ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  3277. +   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&4
  3278.   fi
  3279. !   if test "$no_x" = yes; then 
  3280. !   # Not all programs may use this symbol, but it does not hurt to define it.
  3281. !   X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING"
  3282. ! else
  3283. !   if test -n "$x_includes"; then
  3284. !     X_CFLAGS="$X_CFLAGS -I$x_includes"
  3285. !   fi
  3286. !   # It would be nice to have a more robust check for the -R ld option than
  3287. !   # just checking for Solaris.
  3288. !   # It would also be nice to do this for all -L options, not just this one.
  3289. !   if test -n "$x_libraries"; then
  3290. !     X_LIBS="$X_LIBS -L$x_libraries"
  3291. !     if test "`(uname) 2>/dev/null`" = SunOS &&
  3292. !       uname -r | grep '^5' >/dev/null; then
  3293. !       X_LIBS="$X_LIBS -R$x_libraries"
  3294. !     fi
  3295. !   fi
  3296. !   # Check for libraries that X11R6 Xt/Xaw programs need.
  3297. !   ac_save_LDFLAGS="$LDFLAGS"
  3298. !   LDFLAGS="$LDFLAGS -L$x_libraries"
  3299. !   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  3300. !   # check for ICE first), but we must link in the order -lSM -lICE or
  3301. !   # we get undefined symbols.  So assume we have SM if we have ICE.
  3302. !   # These have to be linked with before -lX11, unlike the other
  3303. !   # libraries we check for below, so use a different variable.
  3304. !   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  3305. !   echo $ac_n "checking for -lICE""... $ac_c" 1>&4
  3306. ! if eval "test \"`echo '${'ac_cv_lib_ICE'+set}'`\" = set"; then
  3307. !   echo $ac_n "(cached) $ac_c" 1>&4
  3308.   else
  3309. !   ac_save_LIBS="$LIBS"
  3310. ! LIBS="$LIBS -lICE "
  3311. ! cat > conftest.$ac_ext <<EOF
  3312. ! #line 1898 "configure"
  3313.   #include "confdefs.h"
  3314.   
  3315. ! int main() { return 0; }
  3316. ! int t() {
  3317. ! IceConnectionNumber()
  3318. ! ; return 0; }
  3319.   EOF
  3320. ! if eval $ac_link; then
  3321.     rm -rf conftest*
  3322. !   eval "ac_cv_lib_ICE=yes"
  3323. ! else
  3324. !   rm -rf conftest*
  3325. !   eval "ac_cv_lib_ICE=no"
  3326.   fi
  3327.   rm -f conftest*
  3328. ! LIBS="$ac_save_LIBS"
  3329. ! fi
  3330. ! if eval "test \"`echo '$ac_cv_lib_'ICE`\" = yes"; then
  3331. !   echo "$ac_t""yes" 1>&4
  3332. !   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  3333.   else
  3334. !   echo "$ac_t""no" 1>&4
  3335.   fi
  3336.   
  3337. !   LDFLAGS="$ac_save_LDFLAGS"
  3338. !   # Check for system-dependent libraries X programs must link with.
  3339. !   if test "$ISC" = yes; then
  3340. !     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  3341. !   else
  3342. !     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  3343. !     # libraries were built with DECnet support.  And karl@cs.umb.edu says
  3344. !     # the Alpha needs dnet_stub (dnet does not exist).
  3345. !     echo $ac_n "checking for -ldnet""... $ac_c" 1>&4
  3346. ! if eval "test \"`echo '${'ac_cv_lib_dnet'+set}'`\" = set"; then
  3347. !   echo $ac_n "(cached) $ac_c" 1>&4
  3348. ! else
  3349. !   ac_save_LIBS="$LIBS"
  3350. ! LIBS="$LIBS -ldnet "
  3351. ! cat > conftest.$ac_ext <<EOF
  3352. ! #line 1941 "configure"
  3353.   #include "confdefs.h"
  3354.   
  3355. ! int main() { return 0; }
  3356. ! int t() {
  3357. ! dnet_ntoa()
  3358. ! ; return 0; }
  3359.   EOF
  3360. ! if eval $ac_link; then
  3361.     rm -rf conftest*
  3362. !   eval "ac_cv_lib_dnet=yes"
  3363. ! else
  3364. !   rm -rf conftest*
  3365. !   eval "ac_cv_lib_dnet=no"
  3366.   fi
  3367.   rm -f conftest*
  3368. ! LIBS="$ac_save_LIBS"
  3369. ! fi
  3370. ! if eval "test \"`echo '$ac_cv_lib_'dnet`\" = yes"; then
  3371. !   echo "$ac_t""yes" 1>&4
  3372. !   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  3373.   else
  3374. !   echo "$ac_t""no" 1>&4
  3375.   fi
  3376.   
  3377. !     if test $ac_cv_lib_dnet = no; then
  3378. !       echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&4
  3379. ! if eval "test \"`echo '${'ac_cv_lib_dnet_stub'+set}'`\" = set"; then
  3380. !   echo $ac_n "(cached) $ac_c" 1>&4
  3381. ! else
  3382. !   ac_save_LIBS="$LIBS"
  3383. ! LIBS="$LIBS -ldnet_stub "
  3384. ! cat > conftest.$ac_ext <<EOF
  3385. ! #line 1975 "configure"
  3386.   #include "confdefs.h"
  3387.   
  3388. ! int main() { return 0; }
  3389. ! int t() {
  3390. ! dnet_ntoa()
  3391. ! ; return 0; }
  3392.   EOF
  3393. ! if eval $ac_link; then
  3394.     rm -rf conftest*
  3395. !   eval "ac_cv_lib_dnet_stub=yes"
  3396. ! else
  3397. !   rm -rf conftest*
  3398. !   eval "ac_cv_lib_dnet_stub=no"
  3399.   fi
  3400.   rm -f conftest*
  3401. ! LIBS="$ac_save_LIBS"
  3402. ! fi
  3403. ! if eval "test \"`echo '$ac_cv_lib_'dnet_stub`\" = yes"; then
  3404. !   echo "$ac_t""yes" 1>&4
  3405. !   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  3406.   else
  3407. !   echo "$ac_t""no" 1>&4
  3408.   fi
  3409.   
  3410. !     fi
  3411.   
  3412. !     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  3413. !     # to get the SysV transport functions.
  3414. !     # Not sure which flavor of 386 UNIX this is, but it seems harmless to
  3415. !     # check for it.
  3416. !     echo $ac_n "checking for -lnsl""... $ac_c" 1>&4
  3417. ! if eval "test \"`echo '${'ac_cv_lib_nsl'+set}'`\" = set"; then
  3418. !   echo $ac_n "(cached) $ac_c" 1>&4
  3419. ! else
  3420. !   ac_save_LIBS="$LIBS"
  3421. ! LIBS="$LIBS -lnsl "
  3422. ! cat > conftest.$ac_ext <<EOF
  3423. ! #line 2014 "configure"
  3424.   #include "confdefs.h"
  3425.   
  3426. ! int main() { return 0; }
  3427. ! int t() {
  3428. ! t_accept()
  3429. ! ; return 0; }
  3430.   EOF
  3431. ! if eval $ac_link; then
  3432. !   rm -rf conftest*
  3433. !   eval "ac_cv_lib_nsl=yes"
  3434. ! else
  3435.     rm -rf conftest*
  3436. !   eval "ac_cv_lib_nsl=no"
  3437. ! fi
  3438. ! rm -f conftest*
  3439. ! LIBS="$ac_save_LIBS"
  3440. ! fi
  3441. ! if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then
  3442. !   echo "$ac_t""yes" 1>&4
  3443. !   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  3444. ! else
  3445. !   echo "$ac_t""no" 1>&4
  3446. ! fi
  3447. !     # lieder@skyler.mavd.honeywell.com says without -lsocket,
  3448. !     # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
  3449. !     # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
  3450. !     if test "`(uname) 2>/dev/null`" != IRIX; then
  3451. !       echo $ac_n "checking for -lsocket""... $ac_c" 1>&4
  3452. ! if eval "test \"`echo '${'ac_cv_lib_socket'+set}'`\" = set"; then
  3453. !   echo $ac_n "(cached) $ac_c" 1>&4
  3454. ! else
  3455. !   ac_save_LIBS="$LIBS"
  3456. ! LIBS="$LIBS -lsocket "
  3457. ! cat > conftest.$ac_ext <<EOF
  3458. ! #line 2052 "configure"
  3459. ! #include "confdefs.h"
  3460.   
  3461. + int main() { return 0; }
  3462. + int t() {
  3463. + socket()
  3464. + ; return 0; }
  3465. + EOF
  3466. + if eval $ac_link; then
  3467. +   rm -rf conftest*
  3468. +   eval "ac_cv_lib_socket=yes"
  3469. + else
  3470. +   rm -rf conftest*
  3471. +   eval "ac_cv_lib_socket=no"
  3472.   fi
  3473.   rm -f conftest*
  3474. ! LIBS="$ac_save_LIBS"
  3475. ! fi
  3476. ! if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then
  3477. !   echo "$ac_t""yes" 1>&4
  3478. !   X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"
  3479.   else
  3480. !   echo "$ac_t""no" 1>&4
  3481.   fi
  3482.   
  3483. +     fi
  3484.     fi
  3485. ! fi
  3486. !   wlibs="-lXt $X_PRE_LIBS -lX11 $wlibs"
  3487.     (cd $srcdir/mf/MFwindow; rm -f x11.c; $LN_S x11-Xt.c x11.c)
  3488.   fi
  3489. ! if test $X10WIN = yes; then
  3490.     wlibs="-lX $wlibs"
  3491.   fi
  3492. ! if test $SUNWIN = yes; then
  3493.     wlibs="-lsuntool -lsunwindow -lpixrect $wlibs"
  3494.     (cd $srcdir/mf/MFwindow; rm -f sun.c; $LN_S sun-sunview.c sun.c)
  3495. ***************
  3496. *** 1209,1316 ****
  3497.   
  3498.   
  3499. ! echo checking for small TeX/MF/BibTeX
  3500. ! # Do TeX first.
  3501. ! # If `small' version is not wanted, do nothing -- make will copy the
  3502. ! # default change file.
  3503. ! cat > conftest.c <<EOF
  3504.   #include "confdefs.h"
  3505.   #include "$srcdir/lib/c-auto.h.in"
  3506. ! #ifndef SMALLTeX
  3507. ! #include <nonexistxyz.kkk>
  3508.   #endif
  3509.   
  3510.   EOF
  3511. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  3512. ! if test -z "$err"; then
  3513.     rm -rf conftest*
  3514. !   SMALLTeX=t
  3515.   fi
  3516.   rm -f conftest*
  3517. ! if test -n "$SMALLTeX"; then
  3518. !   echo "(small TeX, creating tex/ctex.ch)"
  3519.     (cd $srcdir/tex && rm -f ctex.ch && sed -f small.sed <tex.ch >ctex.ch)
  3520. !   
  3521. ! {
  3522. ! test -n "$verbose" && \
  3523. ! echo "    defining" GLUERATIO_TYPE to be float
  3524. ! echo "#define" GLUERATIO_TYPE float >> confdefs.h
  3525. ! DEFS="$DEFS -DGLUERATIO_TYPE=float"
  3526. ! SEDDEFS="${SEDDEFS}\${SEDdA}GLUERATIO_TYPE\${SEDdB}GLUERATIO_TYPE\${SEDdC}float\${SEDdD}
  3527. ! \${SEDuA}GLUERATIO_TYPE\${SEDuB}GLUERATIO_TYPE\${SEDuC}float\${SEDuD}
  3528. ! \${SEDeA}GLUERATIO_TYPE\${SEDeB}GLUERATIO_TYPE\${SEDeC}float\${SEDeD}
  3529. ! "
  3530. ! }
  3531.   
  3532.   fi
  3533.   
  3534. ! # Metafont next.
  3535. ! cat > conftest.c <<EOF
  3536.   #include "confdefs.h"
  3537.   #include "$srcdir/lib/c-auto.h.in"
  3538. ! #ifndef SMALLMF
  3539. ! #include <nonexistxyz.kkk>
  3540.   #endif
  3541.   
  3542.   EOF
  3543. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  3544. ! if test -z "$err"; then
  3545.     rm -rf conftest*
  3546. !   SMALLMF=t
  3547.   fi
  3548.   rm -f conftest*
  3549. ! if test -n "$SMALLMF"; then
  3550. !   echo "(small Metafont, creating mf/cmf.ch)"
  3551.     (cd $srcdir/mf && rm -f cmf.ch && sed -f small.sed <mf.ch >cmf.ch)
  3552.   fi
  3553.   
  3554. ! # And finally BibTeX.
  3555. ! cat > conftest.c <<EOF
  3556.   #include "confdefs.h"
  3557.   #include "$srcdir/lib/c-auto.h.in"
  3558. ! #ifndef SMALLBibTeX
  3559. ! #include <nonexistxyz.kkk>
  3560.   #endif
  3561.   
  3562.   EOF
  3563. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  3564. ! if test -z "$err"; then
  3565.     rm -rf conftest*
  3566. !   SMALLBibTeX=t
  3567.   fi
  3568.   rm -f conftest*
  3569. ! if test -n "$SMALLBibTeX"; then
  3570. !   echo "(small BibTeX, creating bibtex/cbibtex.ch)"
  3571.     (cd $srcdir/bibtex \
  3572.      && rm -f cbibtex.ch && sed -f small.sed <bibtex.ch >cbibtex.ch)
  3573.   fi
  3574.   
  3575. ! # Set default prefixes.
  3576. ! if test -n "$prefix"; then
  3577. !   test -z "$exec_prefix" && exec_prefix='${prefix}'
  3578. !   prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  3579. ! fi
  3580. ! if test -n "$exec_prefix"; then
  3581. !   prsub="$prsub
  3582. ! s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  3583. ! fi
  3584. ! # Quote sed substitution magic chars in DEFS.
  3585. ! cat >conftest.def <<EOF
  3586. ! $DEFS
  3587. ! EOF
  3588. ! escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  3589. ! DEFS=`sed "$escape_ampersand_and_backslash" <conftest.def`
  3590. ! rm -f conftest.def
  3591. ! # Substitute for predefined variables.
  3592. ! trap 'rm -f config.status; exit 1' 1 3 15
  3593. ! echo creating config.status
  3594. ! rm -f config.status
  3595. ! cat > config.status <<EOF
  3596.   #!/bin/sh
  3597.   # Generated automatically by configure.
  3598. --- 2091,2224 ----
  3599.   
  3600.   
  3601. ! echo $ac_n "checking for small TeX""... $ac_c" 1>&4
  3602. ! cat > conftest.$ac_ext <<EOF
  3603. ! #line 2096 "configure"
  3604.   #include "confdefs.h"
  3605.   #include "$srcdir/lib/c-auto.h.in"
  3606. ! #ifdef SMALLTeX
  3607. !   yes
  3608.   #endif
  3609.   
  3610.   EOF
  3611. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3612. !   egrep "yes" >/dev/null 2>&1; then
  3613.     rm -rf conftest*
  3614. !   SMALLTeX=yes
  3615. ! else
  3616. !   rm -rf conftest*
  3617. !   SMALLTeX=no
  3618.   fi
  3619.   rm -f conftest*
  3620. ! echo "$ac_t""$SMALLTeX" 1>&4
  3621. ! if test $SMALLTeX = yes; then
  3622.     (cd $srcdir/tex && rm -f ctex.ch && sed -f small.sed <tex.ch >ctex.ch)
  3623. !   cat >> confdefs.h <<\EOF
  3624. ! #define GLUERATIO_TYPE float
  3625. ! EOF
  3626.   
  3627.   fi
  3628.   
  3629. ! echo $ac_n "checking for small MF""... $ac_c" 1>&4
  3630. ! cat > conftest.$ac_ext <<EOF
  3631. ! #line 2125 "configure"
  3632.   #include "confdefs.h"
  3633.   #include "$srcdir/lib/c-auto.h.in"
  3634. ! #ifdef SMALLMF
  3635. !   yes
  3636.   #endif
  3637.   
  3638.   EOF
  3639. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3640. !   egrep "yes" >/dev/null 2>&1; then
  3641.     rm -rf conftest*
  3642. !   SMALLMF=yes
  3643. ! else
  3644. !   rm -rf conftest*
  3645. !   SMALLMF=no
  3646.   fi
  3647.   rm -f conftest*
  3648. ! echo "$ac_t""$SMALLMF" 1>&4
  3649. ! if test $SMALLMF = yes; then
  3650.     (cd $srcdir/mf && rm -f cmf.ch && sed -f small.sed <mf.ch >cmf.ch)
  3651.   fi
  3652.   
  3653. ! echo $ac_n "checking for small BibTeX""... $ac_c" 1>&4
  3654. ! cat > conftest.$ac_ext <<EOF
  3655. ! #line 2150 "configure"
  3656.   #include "confdefs.h"
  3657.   #include "$srcdir/lib/c-auto.h.in"
  3658. ! #ifdef SMALLBibTeX
  3659. !   yes
  3660.   #endif
  3661.   
  3662.   EOF
  3663. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3664. !   egrep "yes" >/dev/null 2>&1; then
  3665.     rm -rf conftest*
  3666. !   SMALLBibTeX=yes
  3667. ! else
  3668. !   rm -rf conftest*
  3669. !   SMALLBibTeX=no
  3670.   fi
  3671.   rm -f conftest*
  3672. ! echo "$ac_t""$SMALLBibTeX" 1>&4
  3673. ! if test $SMALLBibTeX = yes; then
  3674.     (cd $srcdir/bibtex \
  3675.      && rm -f cbibtex.ch && sed -f small.sed <bibtex.ch >cbibtex.ch)
  3676.   fi
  3677.   
  3678. ! trap '' 1 2 15
  3679. ! if test -w $cache_file; then
  3680. ! echo "updating cache $cache_file"
  3681. ! cat > $cache_file <<\EOF
  3682. ! # This file is a shell script that caches the results of configure
  3683. ! # tests run on this system so they can be shared between configure
  3684. ! # scripts and configure runs.  It is not useful on other systems.
  3685. ! # If it contains results you don't want to keep, you may remove or edit it.
  3686. ! #
  3687. ! # By default, configure uses ./config.cache as the cache file,
  3688. ! # creating it if it does not exist already.  You can give configure
  3689. ! # the --cache-file=FILE option to use a different cache file; that is
  3690. ! # what configure does when it calls configure scripts in
  3691. ! # subdirectories, so they share the cache.
  3692. ! # Giving --cache-file=/dev/null disables caching, for debugging configure.
  3693. ! # config.status only pays attention to the cache file if you give it the
  3694. ! # --recheck option to rerun configure.
  3695. ! #
  3696. ! EOF
  3697. ! # Ultrix sh set writes to stderr and can't be redirected directly.
  3698. ! (set) 2>&1 |
  3699. !   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
  3700. !   >> $cache_file
  3701. ! else
  3702. ! echo "not updating unwritable cache $cache_file"
  3703. ! fi
  3704. ! trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  3705. ! test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3706. ! # Let make expand exec_prefix.
  3707. ! test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3708. ! # Any assignment to VPATH causes Sun make to only execute
  3709. ! # the first set of double-colon rules, so remove it if not needed.
  3710. ! # If there is a colon in the path, we need to keep it.
  3711. ! if test "x$srcdir" = x.; then
  3712. !   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  3713. ! fi
  3714. ! trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  3715. ! DEFS=-DHAVE_CONFIG_H
  3716. ! # Without the "./", some shells look in PATH for config.status.
  3717. ! : ${CONFIG_STATUS=./config.status}
  3718. ! echo creating $CONFIG_STATUS
  3719. ! rm -f $CONFIG_STATUS
  3720. ! cat > $CONFIG_STATUS <<EOF
  3721.   #!/bin/sh
  3722.   # Generated automatically by configure.
  3723. ***************
  3724. *** 1319,1386 ****
  3725.   # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3726.   #
  3727. ! # $0 $configure_args
  3728.   
  3729. ! for arg
  3730.   do
  3731. !   case "\$arg" in
  3732. !     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3733. !     echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args
  3734. !     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args ;;
  3735. !     *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  3736.     esac
  3737.   done
  3738.   
  3739.   trap 'rm -fr Makefile bibtex/Makefile dviutil/Makefile fontutil/Makefile \
  3740.   lib/Makefile man/Makefile mf/Makefile mf/MFwindow/Makefile \
  3741. ! tex/Makefile web/Makefile web2c/Makefile lib/c-auto.h conftest*; exit 1' 1 3 15
  3742. ! CC='$CC'
  3743. ! CPP='$CPP'
  3744. ! INSTALL='$INSTALL'
  3745. ! INSTALL_PROGRAM='$INSTALL_PROGRAM'
  3746. ! INSTALL_DATA='$INSTALL_DATA'
  3747. ! RANLIB='$RANLIB'
  3748. ! YACC='$YACC'
  3749. ! LEX='$LEX'
  3750. ! LEXLIB='$LEXLIB'
  3751. ! LN_S='$LN_S'
  3752. ! LEX_OUTPUT_ROOT='$LEX_OUTPUT_ROOT'
  3753. ! x_include_flags='$x_include_flags'
  3754. ! x_lib_flags='$x_lib_flags'
  3755. ! x_extra_libs='$x_extra_libs'
  3756. ! wlibs='$wlibs'
  3757. ! LIBS='$LIBS'
  3758. ! srcdir='$srcdir'
  3759. ! prefix='$prefix'
  3760. ! exec_prefix='$exec_prefix'
  3761. ! prsub='$prsub'
  3762. ! extrasub='$extrasub'
  3763. ! EOF
  3764. ! cat >> config.status <<\EOF
  3765.   
  3766. ! top_srcdir=$srcdir
  3767. ! CONFIG_FILES=${CONFIG_FILES-"Makefile bibtex/Makefile dviutil/Makefile fontutil/Makefile \
  3768. ! lib/Makefile man/Makefile mf/Makefile mf/MFwindow/Makefile \
  3769. ! tex/Makefile web/Makefile web2c/Makefile"}
  3770. ! for file in .. ${CONFIG_FILES}; do if test "x$file" != x..; then
  3771. !   srcdir=$top_srcdir
  3772. !   # Remove last slash and all that follows it.  Not all systems have dirname.
  3773. !   dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  3774. !   if test "$dir" != "$file"; then
  3775. !     test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  3776. !     test ! -d $dir && mkdir $dir
  3777. !   fi
  3778. !   echo creating $file
  3779. !   rm -f $file
  3780. !   echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  3781. !   sed -e "
  3782. ! $prsub
  3783.   $extrasub
  3784.   s%@CC@%$CC%g
  3785. - s%@CPP@%$CPP%g
  3786. - s%@INSTALL@%$INSTALL%g
  3787.   s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  3788.   s%@INSTALL_DATA@%$INSTALL_DATA%g
  3789.   s%@RANLIB@%$RANLIB%g
  3790.   s%@YACC@%$YACC%g
  3791.   s%@LEX@%$LEX%g
  3792. --- 2227,2279 ----
  3793.   # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3794.   #
  3795. ! # $0 $ac_configure_args
  3796. ! #
  3797. ! # Compiler output produced by configure, useful for debugging
  3798. ! # configure, is in ./config.log if it exists.
  3799.   
  3800. ! ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  3801. ! for ac_option
  3802.   do
  3803. !   case "\$ac_option" in
  3804. !   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3805. !     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  3806. !     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  3807. !   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  3808. !     echo "$CONFIG_STATUS generated by autoconf version 2.1"
  3809. !     exit 0 ;;
  3810. !   -help | --help | --hel | --he | --h)
  3811. !     echo "\$ac_cs_usage"; exit 0 ;;
  3812. !   *) echo "\$ac_cs_usage"; exit 1 ;;
  3813.     esac
  3814.   done
  3815.   
  3816. + ac_given_srcdir=$srcdir
  3817. + ac_given_INSTALL="$INSTALL"
  3818.   trap 'rm -fr Makefile bibtex/Makefile dviutil/Makefile fontutil/Makefile \
  3819.   lib/Makefile man/Makefile mf/Makefile mf/MFwindow/Makefile \
  3820. ! tex/Makefile web/Makefile web2c/Makefile lib/c-auto.h conftest*; exit 1' 1 2 15
  3821.   
  3822. ! # Protect against being on the right side of a sed subst in config.status. 
  3823. ! sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  3824. !  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  3825. ! $ac_vpsub
  3826.   $extrasub
  3827. + s%@CFLAGS@%$CFLAGS%g
  3828. + s%@CPPFLAGS@%$CPPFLAGS%g
  3829. + s%@CXXFLAGS@%$CXXFLAGS%g
  3830. + s%@DEFS@%$DEFS%g
  3831. + s%@LDFLAGS@%$LDFLAGS%g
  3832. + s%@LIBS@%$LIBS%g
  3833. + s%@exec_prefix@%$exec_prefix%g
  3834. + s%@prefix@%$prefix%g
  3835. + s%@program_transform_name@%$program_transform_name%g
  3836. + s%@SET_MAKE@%$SET_MAKE%g
  3837.   s%@CC@%$CC%g
  3838.   s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  3839.   s%@INSTALL_DATA@%$INSTALL_DATA%g
  3840.   s%@RANLIB@%$RANLIB%g
  3841. + s%@CPP@%$CPP%g
  3842. + s%@LIBOBJS@%$LIBOBJS%g
  3843.   s%@YACC@%$YACC%g
  3844.   s%@LEX@%$LEX%g
  3845. ***************
  3846. *** 1388,1493 ****
  3847.   s%@LN_S@%$LN_S%g
  3848.   s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
  3849. ! s%@x_include_flags@%$x_include_flags%g
  3850. ! s%@x_lib_flags@%$x_lib_flags%g
  3851. ! s%@x_extra_libs@%$x_extra_libs%g
  3852.   s%@wlibs@%$wlibs%g
  3853. ! s%@LIBS@%$LIBS%g
  3854.   s%@srcdir@%$srcdir%g
  3855. ! s%@DEFS@%-DHAVE_CONFIG_H%" $top_srcdir/${file}.in >> $file
  3856.   fi; done
  3857.   
  3858.   CONFIG_HEADERS=${CONFIG_HEADERS-"lib/c-auto.h"}
  3859. ! for file in .. ${CONFIG_HEADERS}; do if test "x$file" != x..; then
  3860. ! echo creating $file
  3861.   
  3862. - # These sed commands are put into SEDDEFS when defining a macro.
  3863. - # They are broken into pieces to make the sed script easier to manage.
  3864. - # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  3865. - # is the cpp macro being defined and VALUE is the value it is being given.
  3866. - # Each defining turns into a single global substitution command.
  3867. - #
  3868. - # SEDd sets the value in "#define NAME VALUE" lines.
  3869. - SEDdA='s@^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3870. - SEDdB='\([     ][     ]*\)[^     ]*@\1#\2'
  3871. - SEDdC='\3'
  3872. - SEDdD='@g'
  3873. - # SEDu turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3874. - SEDuA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3875. - SEDuB='\([     ]\)@\1#\2define\3'
  3876. - SEDuC=' '
  3877. - SEDuD='\4@g'
  3878. - # SEDe turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3879. - SEDeA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3880. - SEDeB='$@\1#\2define\3'
  3881. - SEDeC=' '
  3882. - SEDeD='@g'
  3883. - rm -f conftest.sed
  3884. - EOF
  3885. - # Turn off quoting long enough to insert the sed commands.
  3886. - rm -f conftest.sh
  3887. - cat > conftest.sh <<EOF
  3888. - $SEDDEFS
  3889.   EOF
  3890.   
  3891. ! # Break up $SEDDEFS (now in conftest.sh) because some shells have a limit
  3892. ! # on the size of here documents.
  3893.   
  3894.   # Maximum number of lines to put in a single here document.
  3895. ! maxshlines=9
  3896.   
  3897.   while :
  3898.   do
  3899. !   # wc gives bogus results for an empty file on some systems.
  3900. !   lines=`grep -c . conftest.sh`
  3901. !   if test -z "$lines" || test "$lines" -eq 0; then break; fi
  3902. !   rm -f conftest.s1 conftest.s2
  3903. !   sed ${maxshlines}q conftest.sh > conftest.s1 # Like head -20.
  3904. !   sed 1,${maxshlines}d conftest.sh > conftest.s2 # Like tail +21.
  3905. !   # Write a limited-size here document to append to conftest.sed.
  3906. !   echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  3907. !   cat conftest.s1 >> config.status
  3908. !   echo 'CONFEOF' >> config.status
  3909. !   rm -f conftest.s1 conftest.sh
  3910. !   mv conftest.s2 conftest.sh
  3911.   done
  3912. ! rm -f conftest.sh
  3913.   
  3914. ! # Now back to your regularly scheduled config.status.
  3915. ! cat >> config.status <<\EOF
  3916. ! # This sed command replaces #undef's with comments.  This is necessary, for
  3917. ! # example, in the case of _POSIX_SOURCE, which is predefined and required
  3918. ! # on some systems where configure will not decide to define it in
  3919. ! # lib/c-auto.h.
  3920. ! cat >> conftest.sed <<\CONFEOF
  3921. ! s,^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  3922. ! CONFEOF
  3923. ! rm -f conftest.h
  3924. ! # Break up the sed commands because old seds have small limits.
  3925. ! maxsedlines=20
  3926. ! cp $top_srcdir/$file.in conftest.h1
  3927. ! while :
  3928. ! do
  3929. !   lines=`grep -c . conftest.sed`
  3930. !   if test -z "$lines" || test "$lines" -eq 0; then break; fi
  3931. !   rm -f conftest.s1 conftest.s2 conftest.h2
  3932. !   sed ${maxsedlines}q conftest.sed > conftest.s1 # Like head -20.
  3933. !   sed 1,${maxsedlines}d conftest.sed > conftest.s2 # Like tail +21.
  3934. !   sed -f conftest.s1 < conftest.h1 > conftest.h2
  3935. !   rm -f conftest.s1 conftest.h1 conftest.sed
  3936. !   mv conftest.h2 conftest.h1
  3937. !   mv conftest.s2 conftest.sed
  3938. ! done
  3939. ! rm -f conftest.sed conftest.h
  3940. ! echo "/* $file.  Generated automatically by configure.  */" > conftest.h
  3941. ! cat conftest.h1 >> conftest.h
  3942. ! rm -f conftest.h1
  3943. ! if cmp -s $file conftest.h 2>/dev/null; then
  3944. !   # The file exists and we would not be changing it.
  3945. !   echo "$file is unchanged"
  3946. !   rm -f conftest.h
  3947. ! else
  3948. !   rm -f $file
  3949. !   mv conftest.h $file
  3950. ! fi
  3951.   fi; done
  3952.   
  3953. --- 2281,2471 ----
  3954.   s%@LN_S@%$LN_S%g
  3955.   s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
  3956. ! s%@X_CFLAGS@%$X_CFLAGS%g
  3957. ! s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  3958. ! s%@X_LIBS@%$X_LIBS%g
  3959. ! s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  3960.   s%@wlibs@%$wlibs%g
  3961. ! CEOF
  3962. ! EOF
  3963. ! cat >> $CONFIG_STATUS <<EOF
  3964. ! CONFIG_FILES=\${CONFIG_FILES-"Makefile bibtex/Makefile dviutil/Makefile fontutil/Makefile \
  3965. ! lib/Makefile man/Makefile mf/Makefile mf/MFwindow/Makefile \
  3966. ! tex/Makefile web/Makefile web2c/Makefile"}
  3967. ! EOF
  3968. ! cat >> $CONFIG_STATUS <<\EOF
  3969. ! for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  3970. !   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3971. !   case "$ac_file" in
  3972. !   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  3973. !        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3974. !   *) ac_file_in="${ac_file}.in" ;;
  3975. !   esac
  3976. !   # Adjust relative srcdir, etc. for subdirectories.
  3977. !   # Remove last slash and all that follows it.  Not all systems have dirname.
  3978. !   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3979. !   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3980. !     # The file is in a subdirectory.
  3981. !     test ! -d "$ac_dir" && mkdir "$ac_dir"
  3982. !     ac_dir_suffix="/$ac_dir"
  3983. !     # A "../" for each directory in $ac_dir_suffix.
  3984. !     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  3985. !   else
  3986. !     ac_dir_suffix= ac_dots=
  3987. !   fi
  3988. !   case "$ac_given_srcdir" in
  3989. !   .)  srcdir=.
  3990. !       if test -z "$ac_dots"; then top_srcdir=.
  3991. !       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  3992. !   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  3993. !   *) # Relative path.
  3994. !     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  3995. !     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  3996. !   esac
  3997. !   case "$ac_given_INSTALL" in
  3998. !   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  3999. !   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  4000. !   esac
  4001. !   echo creating "$ac_file"
  4002. !   rm -f "$ac_file"
  4003. !   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  4004. !   case "$ac_file" in
  4005. !   *Makefile*) ac_comsub="1i\\
  4006. ! # $configure_input" ;;
  4007. !   *) ac_comsub= ;;
  4008. !   esac
  4009. !   # Replace lines of the form ac_include foo with the contents of foo:
  4010. !   # first, from the ac_include lines construct a list of sed
  4011. !   # commands to remove them, and include the files; then run sed.
  4012. !   # Have to use sed because old (Ultrix, SunOS) awk does not support
  4013. !   # getline or system. (Anyway, configure scripts aren't supposed to use awk.)
  4014. !   # Use \@...@<cmd> form of sed address because the filename may contain /.
  4015. !   # Can't use only one -e and commands {dr foo} because foo has to be last.
  4016. !   # Use @e initially instead of -e because GNU echo has a -e option.
  4017. !   # USe `X' to mean a bunch of backslashes; this is for FreeBSD.
  4018. !   file_substs=`sed -n \
  4019. ! "/^ac_include/s%ac_include[     ]*\(.*\)%@e 'X@^&@r \1' -e 'X@^&@d'%p" \
  4020. !                $ac_given_srcdir/${ac_file}.in`
  4021. !   if test -n "$file_substs"; then
  4022. !     # Change @e back to -e and X@^ to \@^.
  4023. !     file_subst_cmd="sed `echo $file_substs \
  4024. !                          | sed -e 's/@e/-e/g' -e 's/X@^/\\\\\@^/g'`"
  4025. !   else
  4026. !     # If no substitutions and hence no sed commands, don't choke.
  4027. !     file_subst_cmd=cat
  4028. !   fi
  4029. !   # cd into the srcdir because the files being included more or less
  4030. !   # must be part of the distribution. I can't find any way to do
  4031. !   # variable substitution in the sed commands (so the user could have,
  4032. !   # e.g., $top_srcdir in their ac_include line).
  4033. !   (cd $ac_given_srcdir && eval $file_subst_cmd ${ac_file}.in) \
  4034. !   | sed -e "$ac_comsub
  4035. ! s%@configure_input@%$configure_input%g
  4036.   s%@srcdir@%$srcdir%g
  4037. ! s%@top_srcdir@%$top_srcdir%g
  4038. ! s%@INSTALL@%$INSTALL%g
  4039. ! " -f conftest.subs > $ac_file
  4040.   fi; done
  4041. + rm -f conftest.subs
  4042. + # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  4043. + # NAME is the cpp macro being defined and VALUE is the value it is being given.
  4044. + #
  4045. + # ac_d sets the value in "#define NAME VALUE" lines.
  4046. + ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  4047. + ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  4048. + ac_dC='\3'
  4049. + ac_dD='%g'
  4050. + # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  4051. + ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  4052. + ac_uB='\([     ]\)%\1#\2define\3'
  4053. + ac_uC=' '
  4054. + ac_uD='\4%g'
  4055. + # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  4056. + ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  4057. + ac_eB='$%\1#\2define\3'
  4058. + ac_eC=' '
  4059. + ac_eD='%g'
  4060.   
  4061.   CONFIG_HEADERS=${CONFIG_HEADERS-"lib/c-auto.h"}
  4062. ! for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  4063. !   # Support "outfile[:infile]", defaulting infile="outfile.in".
  4064. !   case "$ac_file" in
  4065. !   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  4066. !        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  4067. !   *) ac_file_in="${ac_file}.in" ;;
  4068. !   esac
  4069. !   echo creating $ac_file
  4070. !   rm -f conftest.frag conftest.in conftest.out
  4071. !   cp $ac_given_srcdir/$ac_file_in conftest.in
  4072.   
  4073.   EOF
  4074.   
  4075. ! # Transform confdefs.h into a sed script conftest.vals that substitutes
  4076. ! # the proper values into config.h.in to produce config.h.  And first:
  4077. ! # Protect against being on the right side of a sed subst in config.status. 
  4078. ! # Protect against being in an unquoted here document in config.status.
  4079. ! rm -f conftest.vals
  4080. ! cat > conftest.hdr <<\EOF
  4081. ! s/[\\&%]/\\&/g
  4082. ! s%[\\$`]%\\&%g
  4083. ! s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  4084. ! s%ac_d%ac_u%gp
  4085. ! s%ac_u%ac_e%gp
  4086. ! EOF
  4087. ! sed -n -f conftest.hdr confdefs.h > conftest.vals
  4088. ! rm -f conftest.hdr
  4089. ! # This sed command replaces #undef with comments.  This is necessary, for
  4090. ! # example, in the case of _POSIX_SOURCE, which is predefined and required
  4091. ! # on some systems where configure will not decide to define it.
  4092. ! cat >> conftest.vals <<\EOF
  4093. ! s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  4094. ! EOF
  4095.   
  4096. + # Break up conftest.vals because some shells have a limit on
  4097. + # the size of here documents, and old seds have small limits too.
  4098.   # Maximum number of lines to put in a single here document.
  4099. ! ac_max_here_lines=12
  4100.   
  4101. + rm -f conftest.tail
  4102.   while :
  4103.   do
  4104. !   ac_lines=`grep -c . conftest.vals`
  4105. !   # grep -c gives empty output for an empty file on some AIX systems.
  4106. !   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  4107. !   # Write a limited-size here document to conftest.frag.
  4108. !   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  4109. !   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  4110. !   echo 'CEOF
  4111. !   sed -f conftest.frag conftest.in > conftest.out
  4112. !   rm -f conftest.in
  4113. !   mv conftest.out conftest.in
  4114. ! ' >> $CONFIG_STATUS
  4115. !   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  4116. !   rm -f conftest.vals
  4117. !   mv conftest.tail conftest.vals
  4118.   done
  4119. ! rm -f conftest.vals
  4120.   
  4121. ! cat >> $CONFIG_STATUS <<\EOF
  4122. !   rm -f conftest.frag conftest.h
  4123. !   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  4124. !   cat conftest.in >> conftest.h
  4125. !   rm -f conftest.in
  4126. !   if cmp -s $ac_file conftest.h 2>/dev/null; then
  4127. !     echo "$ac_file is unchanged"
  4128. !     rm -f conftest.h
  4129. !   else
  4130. !     rm -f $ac_file
  4131. !     mv conftest.h $ac_file
  4132. !   fi
  4133.   fi; done
  4134.   
  4135. ***************
  4136. *** 1496,1500 ****
  4137.   exit 0
  4138.   EOF
  4139. ! chmod +x config.status
  4140. ! ${CONFIG_SHELL-/bin/sh} config.status
  4141.   
  4142. --- 2474,2479 ----
  4143.   exit 0
  4144.   EOF
  4145. ! chmod +x $CONFIG_STATUS
  4146. ! rm -fr confdefs* $ac_clean_files
  4147. ! test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
  4148.   
  4149. *** web2c/lib/c-auto.h.in.save    Tue Feb  1 12:28:36 1994
  4150. --- web2c/lib/c-auto.h.in    Fri Dec 16 12:48:00 1994
  4151. ***************
  4152. *** 142,145 ****
  4153. --- 142,163 ----
  4154.   /* Define as `float' if making a ``small'' TeX.  */
  4155.   #undef GLUERATIO_TYPE
  4156. + /* Define if your putenv doesn't waste space when the same environment
  4157. +    variable is assigned more than once, with different (malloced)
  4158. +    values.  This is true only on NetBSD/FreeBSD, as far as I know. See
  4159. +    xputenv.c.  */
  4160. + #undef SMART_PUTENV
  4161. + /* Define if you are using GNU libc or otherwise have global variables
  4162. +    `program_invocation_name' and `program_invocation_short_name'.  */
  4163. + #undef HAVE_PROGRAM_INVOCATION_NAME
  4164. + /* Define if you get clashes concerning wchar_t, between X's include
  4165. +    files and system includes.  */
  4166. + #undef FOIL_X_WCHAR_T
  4167. + /* Define if you have SIGIO, F_SETOWN, and FASYNC.  */
  4168. + #undef HAVE_SIGIO
  4169.   /* Below here generated by autoheader.  */
  4170.   /* c-auto.h.in.  Generated automatically from configure.in by autoheader.  */
  4171. ***************
  4172. *** 151,166 ****
  4173.   #undef const
  4174.   
  4175. - /* Define as the proper declaration for yytext.  */
  4176. - #undef DECLARE_YYTEXT
  4177. - /* Define if you have dirent.h.  */
  4178. - #undef DIRENT
  4179.   /* Define if long int is 64 bits.  */
  4180.   #undef LONG_64_BITS
  4181.   
  4182. - /* Define if you don't have dirent.h, but have ndir.h.  */
  4183. - #undef NDIR
  4184.   /* Define if you need to in order for stat and other things to work.  */
  4185.   #undef _POSIX_SOURCE
  4186. --- 169,175 ----
  4187. ***************
  4188. *** 172,192 ****
  4189.   #undef STDC_HEADERS
  4190.   
  4191. - /* Define if you don't have dirent.h, but have sys/dir.h.  */
  4192. - #undef SYSDIR
  4193. - /* Define if you don't have dirent.h, but have sys/ndir.h.  */
  4194. - #undef SYSNDIR
  4195. - /* Define if the closedir function returns void instead of int.  */
  4196. - #undef VOID_CLOSEDIR
  4197.   /* Define if your processor stores words with the most significant
  4198.      byte first (like Motorola and SPARC, unlike Intel and VAX).  */
  4199.   #undef WORDS_BIGENDIAN
  4200.   
  4201. ! /* Define if you have memmove.  */
  4202.   #undef HAVE_MEMMOVE
  4203.   
  4204. ! /* Define if you have putenv.  */
  4205.   #undef HAVE_PUTENV
  4206.   
  4207. --- 181,198 ----
  4208.   #undef STDC_HEADERS
  4209.   
  4210.   /* Define if your processor stores words with the most significant
  4211.      byte first (like Motorola and SPARC, unlike Intel and VAX).  */
  4212.   #undef WORDS_BIGENDIAN
  4213.   
  4214. ! /* Define if lex declares yytext as a char * by default, not a char[].  */
  4215. ! #undef YYTEXT_POINTER
  4216. ! /* Define if you have the bcopy function.  */
  4217. ! #undef HAVE_BCOPY
  4218. ! /* Define if you have the memmove function.  */
  4219.   #undef HAVE_MEMMOVE
  4220.   
  4221. ! /* Define if you have the putenv function.  */
  4222.   #undef HAVE_PUTENV
  4223.   
  4224. ***************
  4225. *** 194,197 ****
  4226. --- 200,206 ----
  4227.   #undef HAVE_ASSERT_H
  4228.   
  4229. + /* Define if you have the <dirent.h> header file.  */
  4230. + #undef HAVE_DIRENT_H
  4231.   /* Define if you have the <float.h> header file.  */
  4232.   #undef HAVE_FLOAT_H
  4233. ***************
  4234. *** 203,206 ****
  4235. --- 212,218 ----
  4236.   #undef HAVE_MEMORY_H
  4237.   
  4238. + /* Define if you have the <ndir.h> header file.  */
  4239. + #undef HAVE_NDIR_H
  4240.   /* Define if you have the <pwd.h> header file.  */
  4241.   #undef HAVE_PWD_H
  4242. ***************
  4243. *** 212,233 ****
  4244.   #undef HAVE_STRING_H
  4245.   
  4246. ! /* Define if you have the <unistd.h> header file.  */
  4247. ! #undef HAVE_UNISTD_H
  4248. ! /* Define if you have the Xext library (-lXext).  */
  4249. ! #undef HAVE_LIBXEXT
  4250. ! /* Define if you have the Xt library (-lXt).  */
  4251. ! #undef HAVE_LIBXT
  4252. ! /* Define if you have the dnet library (-ldnet).  */
  4253. ! #undef HAVE_LIBDNET
  4254.   
  4255. ! /* Define if you have the dnet_stub library (-ldnet_stub).  */
  4256. ! #undef HAVE_LIBDNET_STUB
  4257.   
  4258. ! /* Define if you have the fl library (-lfl).  */
  4259. ! #undef HAVE_LIBFL
  4260.   
  4261. ! /* Define if you have the socket library (-lsocket).  */
  4262. ! #undef HAVE_LIBSOCKET
  4263. --- 224,240 ----
  4264.   #undef HAVE_STRING_H
  4265.   
  4266. ! /* Define if you have the <sys/dir.h> header file.  */
  4267. ! #undef HAVE_SYS_DIR_H
  4268.   
  4269. ! /* Define if you have the <sys/ndir.h> header file.  */
  4270. ! #undef HAVE_SYS_NDIR_H
  4271.   
  4272. ! /* Define if you have the <unistd.h> header file.  */
  4273. ! #undef HAVE_UNISTD_H
  4274.   
  4275. ! /* Retrofit needed by the sources, which still use DECLARE_YYTEXT.  */
  4276. ! #if YYTEXT_POINTER
  4277. ! #define DECLARE_YYTEXT extern char *yytext;
  4278. ! #else
  4279. ! #define DECLARE_YYTEXT extern char yytext[];
  4280. ! #endif
  4281. *** web2c/lib/main.c.save    Tue May 25 11:41:19 1993
  4282. --- web2c/lib/main.c    Fri Sep 23 15:48:40 1994
  4283. ***************
  4284. *** 28,31 ****
  4285. --- 28,32 ----
  4286.     argc = ac;
  4287.     gargv = av;
  4288. +   kpse_set_progname(av[0]);
  4289.     main_body ();
  4290.     return EXIT_SUCCESS;
  4291. *** web2c/lib/openinout.c.save    Sat Dec  4 13:01:52 1993
  4292. --- web2c/lib/openinout.c    Wed Sep 28 16:26:41 1994
  4293. ***************
  4294. *** 125,128 ****
  4295. --- 125,131 ----
  4296.       kpse_file_format_type format;
  4297.   {
  4298. +   static boolean kpathsea_dpi_set = 0;
  4299. +   static boolean maketex_base_dpi_set = 0;
  4300.     string found;
  4301.     /* Since & is a no-op when applied to an array, we must put the
  4302. ***************
  4303. *** 130,133 ****
  4304. --- 133,149 ----
  4305.     string name = nameoffile;
  4306.     
  4307. +   if (!kpathsea_dpi_set)
  4308. +     {
  4309. +       if (!getenv ("KPATHSEA_DPI"))
  4310. +     xputenv_int ("KPATHSEA_DPI", 300);
  4311. +       kpathsea_dpi_set = 1;
  4312. +     }
  4313. +   if (!maketex_base_dpi_set)
  4314. +     {
  4315. +       if (!getenv ("MAKETEX_BASE_DPI"))
  4316. +     xputenv_int ("MAKETEX_BASE_DPI", 300);
  4317. +       maketex_base_dpi_set = 1;
  4318. +     }
  4319.     make_c_string (&name);
  4320.     found = kpse_make_tex (format, name);
  4321. *** web2c/lib/ourpaths.c.save    Sun Dec  5 12:48:44 1993
  4322. --- web2c/lib/ourpaths.c    Fri Oct 28 21:42:19 1994
  4323. ***************
  4324. *** 3,14 ****
  4325.   #include "config.h"
  4326.   
  4327. ! #include <kpathsea/filefmt.h>
  4328.   #include <kpathsea/fontmap.h>
  4329.   #include <kpathsea/pathsearch.h>
  4330.   
  4331.   /* `path_dirs' is initialized in `setpaths', to a null-terminated array
  4332.      of directories to search for.  */
  4333. ! static string path_dirs[LAST_PATH];
  4334.   
  4335.   
  4336. --- 3,17 ----
  4337.   #include "config.h"
  4338.   
  4339. ! #include <kpathsea/cnf.h>
  4340. ! #include <kpathsea/default.h>
  4341. ! #include <kpathsea/expand.h>
  4342.   #include <kpathsea/fontmap.h>
  4343. + #include <kpathsea/paths.h>
  4344.   #include <kpathsea/pathsearch.h>
  4345. ! #include <kpathsea/tex-file.h>
  4346.   
  4347.   /* `path_dirs' is initialized in `setpaths', to a null-terminated array
  4348.      of directories to search for.  */
  4349. ! static const_string path_dirs[LAST_PATH];
  4350.   
  4351.   
  4352. ***************
  4353. *** 23,60 ****
  4354.   {
  4355.     if (path_bits & BIBINPUTPATHBIT)
  4356. !     path_dirs[BIBINPUTPATH] = KPSE_BIB_PATH ();
  4357.   
  4358.     if (path_bits & BSTINPUTPATHBIT)
  4359. !     path_dirs[BSTINPUTPATH] = KPSE_BST_PATH ();
  4360.   
  4361.     if (path_bits & GFFILEPATHBIT)
  4362. !     path_dirs[GFFILEPATH] = KPSE_GF_PATH ();
  4363.   
  4364.     if (path_bits & MFBASEPATHBIT)
  4365. !     path_dirs[MFBASEPATH] = KPSE_BASE_PATH ();
  4366.   
  4367.     if (path_bits & MFINPUTPATHBIT)
  4368. !     path_dirs[MFINPUTPATH] = KPSE_MF_PATH ();
  4369.   
  4370.     if (path_bits & MFPOOLPATHBIT)
  4371. !     path_dirs[MFPOOLPATH] = KPSE_MFPOOL_PATH ();
  4372.   
  4373.     if (path_bits & PKFILEPATHBIT)
  4374. !     path_dirs[PKFILEPATH] = KPSE_PK_PATH ();
  4375.   
  4376.     if (path_bits & TEXFORMATPATHBIT)
  4377. !     path_dirs[TEXFORMATPATH] = KPSE_FMT_PATH ();
  4378.   
  4379.     if (path_bits & TEXINPUTPATHBIT)
  4380. !     path_dirs[TEXINPUTPATH] = KPSE_TEX_PATH ();
  4381.   
  4382.     if (path_bits & TEXPOOLPATHBIT)
  4383. !     path_dirs[TEXPOOLPATH] = KPSE_TEXPOOL_PATH ();
  4384.   
  4385.     if (path_bits & TFMFILEPATHBIT)
  4386. !     path_dirs[TFMFILEPATH] = KPSE_TFM_PATH ();
  4387.   
  4388.     if (path_bits & VFFILEPATHBIT)
  4389. !     path_dirs[VFFILEPATH] = KPSE_VF_PATH ();
  4390.   }
  4391.   
  4392. --- 26,63 ----
  4393.   {
  4394.     if (path_bits & BIBINPUTPATHBIT)
  4395. !     path_dirs[BIBINPUTPATH] = kpse_init_format (kpse_bib_format);
  4396.   
  4397.     if (path_bits & BSTINPUTPATHBIT)
  4398. !     path_dirs[BSTINPUTPATH] = kpse_init_format (kpse_bst_format);
  4399.   
  4400.     if (path_bits & GFFILEPATHBIT)
  4401. !     path_dirs[GFFILEPATH] = kpse_init_format (kpse_gf_format);
  4402.   
  4403.     if (path_bits & MFBASEPATHBIT)
  4404. !     path_dirs[MFBASEPATH] = kpse_init_format (kpse_base_format);
  4405.   
  4406.     if (path_bits & MFINPUTPATHBIT)
  4407. !     path_dirs[MFINPUTPATH] = kpse_init_format (kpse_mf_format);
  4408.   
  4409.     if (path_bits & MFPOOLPATHBIT)
  4410. !     path_dirs[MFPOOLPATH] = kpse_init_format (kpse_mfpool_format);
  4411.   
  4412.     if (path_bits & PKFILEPATHBIT)
  4413. !     path_dirs[PKFILEPATH] = kpse_init_format (kpse_pk_format);
  4414.   
  4415.     if (path_bits & TEXFORMATPATHBIT)
  4416. !     path_dirs[TEXFORMATPATH] = kpse_init_format (kpse_fmt_format);
  4417.   
  4418.     if (path_bits & TEXINPUTPATHBIT)
  4419. !     path_dirs[TEXINPUTPATH] = kpse_init_format (kpse_tex_format);
  4420.   
  4421.     if (path_bits & TEXPOOLPATHBIT)
  4422. !     path_dirs[TEXPOOLPATH] = kpse_init_format (kpse_texpool_format);
  4423.   
  4424.     if (path_bits & TFMFILEPATHBIT)
  4425. !     path_dirs[TFMFILEPATH] = kpse_init_format (kpse_tfm_format);
  4426.   
  4427.     if (path_bits & VFFILEPATHBIT)
  4428. !     path_dirs[VFFILEPATH] = kpse_init_format (kpse_vf_format);
  4429.   }
  4430.   
  4431. ***************
  4432. *** 72,76 ****
  4433.   {
  4434.     string found;  
  4435. !   string path = path_dirs[path_index];
  4436.     
  4437.     make_c_string (&name);
  4438. --- 75,79 ----
  4439.   {
  4440.     string found;  
  4441. !   const_string path = path_dirs[path_index];
  4442.     
  4443.     make_c_string (&name);
  4444. ***************
  4445. *** 79,83 ****
  4446.        have the dpi available separately, and anyway we don't care about
  4447.        having pktogf run MakeTeXPK, etc.  */
  4448. !   found = kpse_path_search (path, name);
  4449.   
  4450.     /* If we didn't find it, and we're looking for a font, maybe it's
  4451. --- 82,86 ----
  4452.        have the dpi available separately, and anyway we don't care about
  4453.        having pktogf run MakeTeXPK, etc.  */
  4454. !   found = kpse_path_search (path, name, true);
  4455.   
  4456.     /* If we didn't find it, and we're looking for a font, maybe it's
  4457. ***************
  4458. *** 89,96 ****
  4459.       {
  4460.         string *mapped_names;
  4461. !       static map_type fontmap = NULL;
  4462.         
  4463.         /* Fault in the mapping if necessary.  */
  4464. !       if (!fontmap)
  4465.           fontmap = map_create (path);
  4466.         
  4467. --- 92,99 ----
  4468.       {
  4469.         string *mapped_names;
  4470. !       static hash_table_type fontmap = { NULL, 0 };
  4471.         
  4472.         /* Fault in the mapping if necessary.  */
  4473. !       if (fontmap.size == 0)
  4474.           fontmap = map_create (path);
  4475.         
  4476. ***************
  4477. *** 102,106 ****
  4478.             while ((mapped_name = *mapped_names++) && !found)
  4479.               {
  4480. !               found = kpse_path_search (path, mapped_name);
  4481.               }
  4482.           }
  4483. --- 105,109 ----
  4484.             while ((mapped_name = *mapped_names++) && !found)
  4485.               {
  4486. !               found = kpse_path_search (path, mapped_name, true);
  4487.               }
  4488.           }
  4489. *** web2c/lib/texmf.c.save    Sun Dec  5 12:53:01 1993
  4490. --- web2c/lib/texmf.c    Fri Sep 23 22:33:56 1994
  4491. ***************
  4492. *** 33,37 ****
  4493.   #include <kpathsea/c-ctype.h>
  4494.   #include <kpathsea/c-pathch.h>
  4495. ! #include <kpathsea/tex-make.h>
  4496.   
  4497.   /* For `struct tm'.  */
  4498. --- 33,37 ----
  4499.   #include <kpathsea/c-ctype.h>
  4500.   #include <kpathsea/c-pathch.h>
  4501. ! #include <kpathsea/tex-file.h>
  4502.   
  4503.   /* For `struct tm'.  */
  4504. ***************
  4505. *** 74,77 ****
  4506. --- 74,79 ----
  4507.     dump_default_length = strlen (dump_default + 1);
  4508.   
  4509. +   kpse_set_progname(av[0]);
  4510.   #ifndef INI
  4511.     if (readyalready != 314159)
  4512. ***************
  4513. *** 99,103 ****
  4514.                               || getenv ("USE_MAKETEXMF")
  4515.                               || getenv ("MAKETEXMF");
  4516. !     KPSE_MAKE_SPEC_ENABLED (kpse_make_specs[kpse_mf_format]) = use_maketexmf;
  4517.     }
  4518.   #endif /* MF */
  4519. --- 101,105 ----
  4520.                               || getenv ("USE_MAKETEXMF")
  4521.                               || getenv ("MAKETEXMF");
  4522. !     kpse_format_info[kpse_mf_format].program_enabled_p = use_maketexmf;
  4523.     }
  4524.   #endif /* MF */
  4525. ***************
  4526. *** 110,115 ****
  4527.                                || getenv ("USE_MAKETEXTFM")
  4528.                                || getenv ("MAKETEXTFM");
  4529. !     KPSE_MAKE_SPEC_ENABLED (kpse_make_specs[kpse_tex_format]) = use_maketextex;
  4530. !     KPSE_MAKE_SPEC_ENABLED (kpse_make_specs[kpse_tfm_format]) = use_maketextfm;
  4531.     }
  4532.   #endif /* TeX */
  4533. --- 112,117 ----
  4534.                                || getenv ("USE_MAKETEXTFM")
  4535.                                || getenv ("MAKETEXTFM");
  4536. !     kpse_format_info[kpse_tex_format].program_enabled_p = use_maketextex;
  4537. !     kpse_format_info[kpse_tfm_format].program_enabled_p = use_maketextfm;
  4538.     }
  4539.   #endif /* TeX */
  4540. *** web2c/mf/Makefile.in.save    Thu Feb  3 04:48:35 1994
  4541. --- web2c/mf/Makefile.in    Sat Sep 24 02:08:29 1994
  4542. ***************
  4543. *** 46,52 ****
  4544.   libs = $(commono) $(LIBS)
  4545.   
  4546. ! x_include_flags = @x_include_flags@
  4547. ! x_lib_flags = @x_lib_flags@
  4548. ! x_extra_libs = @x_extra_libs@
  4549.   wlibs = @wlibs@
  4550.   LIBS = @LIBS@
  4551. --- 46,52 ----
  4552.   libs = $(commono) $(LIBS)
  4553.   
  4554. ! x_include_flags = @X_CFLAGS@
  4555. ! x_lib_flags = @X_LIBS@
  4556. ! x_extra_libs = @X_EXTRA_LIBS@
  4557.   wlibs = @wlibs@
  4558.   LIBS = @LIBS@
  4559. ***************
  4560. *** 72,77 ****
  4561.   # What to pass to submakes.
  4562.   makeargs=SHELL='$(SHELL)' CC='$(CC)' CFLAGS='$(CFLAGS)' \
  4563. ! LDFLAGS='$(LDFLAGS)' LIBS='$(libs)' RANLIB='$(RANLIB)' LN='$(LN)' \
  4564. ! srcdir=$(srcdir)  
  4565.   
  4566.   
  4567. --- 72,76 ----
  4568.   # What to pass to submakes.
  4569.   makeargs=SHELL='$(SHELL)' CC='$(CC)' CFLAGS='$(CFLAGS)' \
  4570. ! LDFLAGS='$(LDFLAGS)' LIBS='$(libs)' RANLIB='$(RANLIB)' LN='$(LN)'
  4571.   
  4572.   
  4573. -- 
  4574. End of web2c.kpathsea-2.5.help
  4575.